Skip to main content
Gomobile’s API is an organization-scoped JSON API for server-to-server integrations. Except for file uploads and downloads, request and response bodies use JSON.

Base URL

All documented paths use the global /api prefix. Use the production or staging host supplied by Gomobile. Set the complete base URL once in your shell:
Examples in this reference use those variables. Replace the placeholder host and key before running them.

Authentication

Send the API key on every documented request:
For JSON bodies, also send:
API keys can have the Admin, Manager, or Agent role. Most endpoints in this reference accept any of those API-key roles. An endpoint marked Admin rejects Manager and Agent keys. Available operations also depend on your organization’s enabled services.

Pagination

Most list endpoints use page-based pagination: A paginated response has this envelope:
Contact interactions use cursor pagination instead. Follow the returned meta.nextCursor rather than constructing a cursor yourself.

Validation

Gomobile rejects undocumented request properties. Send only documented fields. UUID path and body fields must contain valid UUIDs, and ISO timestamps must include a valid timezone or UTC marker when the endpoint requires a date-time.

Errors

Use the top-level code as the machine-readable discriminator. Handle errors using code and, when present, fieldErrors or fieldDetails. Descriptive message and error values can vary between error types.
Common HTTP statuses: The API can return Retry-After, X-RateLimit-Limit, X-RateLimit-Remaining, and X-RateLimit-Reset on rate-limited routes. Use the headers returned for the requested operation to handle throttling.

Versioning and idempotency

To avoid duplicate work when retrying requests:
  • a repeated POST can create or trigger work again;
  • use returned resource IDs to follow the original operation;
  • do not retry a timed-out mutation automatically without first checking its result.
Handle unfamiliar response values without assuming they have the same meaning as existing ones.

Safe testing

Some API requests place real calls, send messages, upload customer data, alter campaign state, or consume credits. Start with read endpoints, synthetic contacts, test channel resources, and a staging organization supplied by Gomobile.
Before testing a mutation, confirm its Side effects and Required setup notes in the endpoint reference.

Contacts API

Create, list, update, upsert, and delete contacts.

Endpoint catalog

Find endpoints by resource and operation.