Apps
Custom apps
Write permission: server creator, admin, or canEditChannel/canEditServer role
Queries
appById
Get app details by ID.
curl "https://start.chat/api/v1/apps/{appId}" \
-H "Authorization: Bearer sk_live_xxx"
Update
Update app configuration.
Parameters
Example
curl -X PATCH "https://start.chat/api/v1/apps/{id}" \
-H "Authorization: Bearer sk_live_xxx" \
-H "Content-Type: application/json" \
-d '{
"id": "abc123"
}'
import { setup, mutate } from '@start-chat/sdk'
await setup({ apiKey: 'sk_live_xxx' })
const result = await mutate.app.update({
id: 'abc123',
})
Response
{
"ok": true,
"data": {
"id": "abc123",
"updatedAt": 1709251200000,
"createdAt": 1709251200000
}
}
Delete
Delete an app.
Parameters
Example
curl -X DELETE "https://start.chat/api/v1/apps/{id}" \
-H "Authorization: Bearer sk_live_xxx"
import { setup, mutate } from '@start-chat/sdk'
await setup({ apiKey: 'sk_live_xxx' })
const result = await mutate.app.delete({
id: 'abc123',
})
Response
{
"ok": true,
"data": {
"id": "abc123",
"updatedAt": 1709251200000,
"createdAt": 1709251200000
}
}
Insert
Register a new app.
Parameters
Example
curl -X POST "https://start.chat/api/v1/apps" \
-H "Authorization: Bearer sk_live_xxx" \
-H "Content-Type: application/json"
import { setup, mutate } from '@start-chat/sdk'
await setup({ apiKey: 'sk_live_xxx' })
const result = await mutate.app.insert({})
Response
{
"ok": true,
"data": {
"id": "abc123",
"updatedAt": 1709251200000,
"createdAt": 1709251200000
}
}
InstallFromRegistry
POST
/api/v1/apps/install-from-registry
InstallFromRegistry a app.
Example
curl -X POST "https://start.chat/api/v1/apps/install-from-registry" \
-H "Authorization: Bearer sk_live_xxx" \
-H "Content-Type: application/json" \
-d '{
"id": "app_abc123"
}'
import { setup, mutate } from '@start-chat/sdk'
await setup({ apiKey: 'sk_live_xxx' })
const result = await mutate.app.installFromRegistry({
id: 'app_abc123',
})
Response
{
"ok": true,
"data": {
"id": "abc123",
"updatedAt": 1709251200000,
"createdAt": 1709251200000
}
}
Submit
Submit a app.
Example
curl -X POST "https://start.chat/api/v1/apps/submit" \
-H "Authorization: Bearer sk_live_xxx" \
-H "Content-Type: application/json" \
-d '{
"id": "app_abc123"
}'
import { setup, mutate } from '@start-chat/sdk'
await setup({ apiKey: 'sk_live_xxx' })
const result = await mutate.app.submit({
id: 'app_abc123',
})
Response
{
"ok": true,
"data": {
"id": "abc123",
"updatedAt": 1709251200000,
"createdAt": 1709251200000
}
}