Keys

Available for user tokens

This endpoint is only available for user tokens, not project keys!

List

GET https://api.suble.io/projects/:projectId/keys

Path Parameters

NameTypeDescription

projectId

string

Unique id for the project

Headers

NameTypeDescription

Authorization

string

User token

[
    {
        "_id": ObjectId,
        "type": String, //Ideally CLOUD-PROJECT-KEY or LOGIN
        "token": String, 
        "project": ObjectId,
        "name": String,
        "date": Number //Unix timestamp
    }
]

Create

POST https://api.suble.io/projects/:projectId/keys

Path Parameters

NameTypeDescription

projectId

string

Unique id for the project

Headers

NameTypeDescription

Authorization

string

User token

Request Body

NameTypeDescription

name

string

Name of the project key

{
    "_id": ObjectId,
    "type": String, //CLOUD-PROJECT-KEY
    "token": String, 
    "project": ObjectId,
    "name": String,
    "date": Number //Unix timestamp
}

Last updated