API Reference

REST API for the Poliglot platform.

The Poliglot API lets you manage workspaces, contexts, matrices, packages, secrets, IAM, and more.

Base URL

https://poliglot.io/api/v1/

Authentication

All requests require a Personal Access Token sent as a Bearer token:

curl -H "Authorization: Bearer plgt_your_token_here" \
  https://poliglot.io/api/v1/workspaces

Response Format

All responses use the standard envelope:

{
  "success": true,
  "data": { ... }
}

Error responses:

{
  "success": false,
  "error": {
    "code": "NOT_FOUND",
    "message": "Workspace not found: my-workspace"
  }
}

Pagination

Paginated endpoints accept page (0-based) and pageSize query parameters:

curl "https://poliglot.io/api/v1/matrix/my-workspace?page=0&pageSize=20" \
  -H "Authorization: Bearer plgt_your_token_here"

Paginated responses include:

{
  "success": true,
  "data": {
    "content": [ ... ],
    "page": 0,
    "pageSize": 20,
    "totalElements": 47,
    "totalPages": 3
  }
}

Common Status Codes

CodeDescription
200Success
400Bad request (validation error, missing parameter)
401Unauthorized (missing or invalid token)
403Forbidden (insufficient permissions)
404Resource not found
409Conflict (duplicate resource, version mismatch)
429Rate limited
500Internal server error

Endpoints

See the endpoint reference for the full list of available operations.

On this page