Applications
Bearer authentication
Executed successfully.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
GET /api/v1/apps HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"name": "app123",
"createdBy": "test@run.ai",
"createdAt": "2020-01-01T00:00:00Z",
"updatedAt": "2020-01-01T00:00:00Z",
"enabled": true,
"tenantId": 1234567890,
"lastLogin": "2020-01-01T00:00:00Z",
"id": "3434c-12323ab-4ce2ea6-b44fc-db344d",
"clientId": "app123"
}
]Bearer authentication
The name of the application. The name must be unique within the organization 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.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
The specified resource already exists
unexpected error
unexpected error
POST /api/v1/apps HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 18
{
"name": "app-123"
}{
"id": "0eeaf222-e503-4f35-9d9c-c419816272e3",
"name": "app123",
"secret": "asdasidjn9d",
"clientId": "app123"
}Bearer authentication
The application id to retrieve
Executed successfully.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
GET /api/v1/apps/{appId} HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"name": "app123",
"createdBy": "test@run.ai",
"createdAt": "2020-01-01T00:00:00Z",
"updatedAt": "2020-01-01T00:00:00Z",
"enabled": true,
"tenantId": 1234567890,
"lastLogin": "2020-01-01T00:00:00Z",
"id": "3434c-12323ab-4ce2ea6-b44fc-db344d",
"clientId": "app123"
}Bearer authentication
The application id to retrieve
Executed successfully.
No content
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
DELETE /api/v1/apps/{appId} HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Bearer authentication
The application id to retrieve
Executed successfully.
No content
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
PATCH /api/v1/apps/{appId} HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 16
{
"enabled": true
}No content
Bearer authentication
The application id to retrieve
Regenerated successfully.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
POST /api/v1/apps/{appId}/secret HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"secret": "189ej2ijd92fj092k049fk0"
}Last updated