Access Keys
Bearer authentication
Executed successfully.
Unauthorized
Forbidden
unexpected error
unexpected error
GET /api/v1/access-keys HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"accessKeys": [
{
"name": "my-access-key",
"id": "3434c-12323ab-4ce2ea6-b44fc-db344d",
"clientId": "3434c-12323ab-4ce2ea6",
"createdAt": "2019-01-01T00:00:00Z",
"lastLogin": "2020-01-01T00:00:00Z"
},
{
"name": "another-access-key",
"id": "5656d-45645cd-6de3fb7-c55gd-ef455e",
"clientId": "5656d-45645cd-6de3fb7",
"createdAt": "2019-01-01T00:00:00Z",
"lastLogin": "2020-01-01T00:00:00Z"
}
]
}Bearer authentication
The name of the access key. The name must be unique within the user's access keys list and can only contain lowercase alphanumeric characters and hyphens. It must start and end with a letter.
^[a-z][-_a-z0-9]*[a-z0-9]$Executed successfully.
The unique identifier of the access key.
The client identifier associated with the access key. Used when requesting authentication tokens.
The name of the access key.
Secret credential paired with the client ID. Used to obtain authentication tokens. Displayed only once upon creation.
The timestamp for when the access key was created.
Bad request.
Unauthorized
Forbidden
The specified resource already exists
unexpected error
unexpected error
POST /api/v1/access-keys HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 26
{
"name": "access-key-name"
}{
"id": "0eeaf222-e503-4f35-9d9c-c419816272e3",
"clientId": "5e7b3b7b4b7b4b7b",
"name": "access-key-123",
"clientSecret": "this-is-the-access-key-secret",
"createdAt": "2020-01-01T00:00:00Z"
}Bearer authentication
The access key ID
Executed successfully.
The name of the access key.
The client identifier associated with the access key. Used when requesting authentication tokens.
The unique identifier of the access key.
The timestamp for when the access key was created.
The timestamp of the last time the access key was used to authenticate.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
GET /api/v1/access-keys/{accessKeyId} HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"name": "my-access-key",
"id": "3434c-12323ab-4ce2ea6-b44fc-db344d",
"clientId": "3434c-12323ab-4ce2ea6",
"createdAt": "2019-01-01T00:00:00Z",
"lastLogin": "2020-01-01T00:00:00Z"
}Bearer authentication
The access key ID
Executed successfully.
No content
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
DELETE /api/v1/access-keys/{accessKeyId} HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Bearer authentication
The access key ID
Regenerated successfully.
Secret credential paired with the client ID. Used to obtain authentication tokens.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
POST /api/v1/access-keys/{accessKeyId}/secret HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"clientSecret": "this-is-my-secret"
}Bearer authentication
Filter results by clientId
3434c-12323ab-4ce2ea6-b44fc-db344dFilter results by creatdBy
test@run.aiExecuted successfully.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
GET /api/v1/administration/access-keys HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"accessKeys": [
{
"name": "my-access-key",
"id": "3434c-12323ab-4ce2ea6-b44fc-db344d",
"clientId": "1434c-123233ab-4ce2ea6-b44fc-db344d",
"createdBy": "test@run.ai",
"createdAt": "2020-01-01T00:00:00Z",
"lastLogin": "2020-01-01T00:00:00Z"
},
{
"name": "another-access-key",
"id": "5656d-45645cd-6de3fb7-c55gd-ef455e",
"clientId": "2545e-234344bc-5df4gc8-d66he-fg566f",
"createdBy": "user@run.ai",
"createdAt": "2020-01-01T00:00:00Z",
"lastLogin": "2020-01-01T00:00:00Z"
}
]
}Bearer authentication
The access key ID
Executed successfully.
No content
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
DELETE /api/v1/administration/access-keys/{accessKeyId} HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Last updated