Applications
DEPRECATED: Applications have been renamed to Service Accounts. Please use the Service Accounts endpoints instead.
Create and manage applications in the tenant.
Retrieve a list of 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"
}
]Used to create an application.
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"
}Retrieve the details of an application by id.
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"
}Use to delete an application by id.
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
Use to update the details of an application by id.
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
Use to regenerate the application secret by id.
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