Beacon

API essentials

View as Markdown

API essentials

Baseline reference for authentication, headers, idempotency, and public errors.

reference • updated 2026-03-15

HTTP conventions

TopicRule
Base URLhttps://api.beacon.pt/v1
AuthAuthorization: Bearer <access_token>
Content-Typeapplication/json
IdempotencyIdempotency-Key for mutating operations

Error payload shape

Errors should return a consistent payload with:

  • code: stable category identifier.
  • message: human-readable troubleshooting summary.
  • request_id: correlation identifier for logs and support.

Common status codes

CodeMeaningRecommended action
400invalid payloadfix schema and retry
401invalid/expired credentialrefresh token and retry
403insufficient permissionsreview scopes and organization context
409idempotency conflictverify if operation already applied
429throttlingretry with exponential backoff