Skip to main content
The Scripts API provides HTTP access to your scripts: code, branches, commits, backend functions, collections, webhooks, AI, and Studio (versions, users, configuration).

Base URL

The complete, machine-readable index is at /scripts.json (no authentication required).

Authentication

Send Authorization: Bearer <token> with every request.
Never put the token inside the script distributed to users. It grants access to the script’s code and backend.

Scopes

If the scope is missing, the response is 403 MISSING_SCOPE.

Format

  • Requests and responses in JSON (Content-Type: application/json).
  • Errors: { "code": "…", "message": "…", "errors": { … } }. errors appears when a field is invalid. See the error list.
  • Dates in ISO 8601 (UTC).
  • Accounts always appear as @username.

Limits

When exceeded, the response is 429 RATE_LIMITED with Retry-After: 60.

Webhooks

Verify the signature (Node.js):

Examples

Read a file

Commit with race protection

AI

Routes

Scripts

6 route(s)

Script token

3 route(s)

Repository

7 route(s)

Backend functions and deployment

3 route(s)

Collections and documents

6 route(s)

Webhooks

6 route(s)

AI and logs

2 route(s)

Authorized apps

2 route(s)

Studio

Versions, users, configuration