API Overview

Orbitr's REST API lets you programmatically manage sites, tasks, keywords, and analytics.

Base URL

All API requests are made to:

https://api.getorbitr.com/api/v1

Authentication

The Orbitr API uses JWT (JSON Web Token) authentication. Include your access token in the Authorization header:

Authorization: Bearer YOUR_ACCESS_TOKEN

See Authentication for details on obtaining tokens.

Request Format

  • All request bodies must be JSON with Content-Type: application/json
  • Query parameters are used for filtering and pagination
  • Path parameters are used for resource identification

Response Format

All responses are JSON. Successful responses include the requested data directly:

{
  "id": "abc123",
  "name": "My Site",
  "domain": "example.com"
}

List endpoints return paginated results:

{
  "items": [...],
  "total": 42,
  "page": 1,
  "page_size": 20
}

Error Handling

Errors return appropriate HTTP status codes with a JSON body:

{
  "detail": "Resource not found"
}
Status CodeMeaning
200Success
201Created
400Bad request — check your parameters
401Unauthorized — invalid or missing token
403Forbidden — insufficient permissions
404Not found
422Validation error — request body doesn't match schema
429Rate limited — slow down
500Server error

Rate Limiting

API requests are rate-limited per user. Current limits:

  • Standard endpoints: 100 requests per minute
  • Search/analytics endpoints: 30 requests per minute

When rate-limited, the API returns a 429 status code. Wait before retrying.

Pagination

List endpoints accept these query parameters:

ParameterTypeDefaultDescription
pageinteger1Page number
page_sizeinteger20Results per page (max 100)

Versioning

The API is versioned via the URL path (/api/v1/). We maintain backward compatibility within a version and announce deprecations in advance.