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

Name
Type
Description

projectId

string

Unique id for the project

Headers

Name
Type
Description

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

Name
Type
Description

projectId

string

Unique id for the project

Headers

Name
Type
Description

Authorization

string

User token

Request Body

Name
Type
Description

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