Skip to main content
Welcome to the G-Tateth CRM API. This guide walks you from zero to your first successful API call.

Prerequisites

Before you begin, make sure you have:
  • A G-Tateth account with at least one workspace (tenant)
  • Access to Settings → Developer Console (Admin or Owner role required to create API keys)
  • A tool to make HTTP requests: curl, Postman, or any HTTP library in your language of choice
  • The base URL for your target environment (see Base URLs below)

Base URLs

All API paths are relative to the base URL, e.g. https://api.g-tateth.com/api/v1/conversations.

Step 1 — Create an API key

  1. Log in to your G-Tateth account
  2. Go to Settings → Developer Console
  3. Click Create API Key
  4. Choose your environment (production or staging)
  5. Select the permissions your key needs (see Authentication for the full permission list)
  6. Copy the full key — it is only shown once
Production keys start with sk_live_. Staging keys start with sk_test_.
Note: Test keys are automatically blocked in the production environment.

Step 2 — Verify connectivity

Before making authenticated requests, confirm the API is reachable (no auth required):
Expected response:

Step 3 — Make your first authenticated request

Pass your API key in the Authorization header as a Bearer token:
Alternatively, use the X-API-Key header:
A successful response looks like:

Pagination

All list endpoints return paginated results. Use the page and limit query parameters to navigate:
Pagination parameters: Pagination response fields: To retrieve all records, iterate pages until page >= totalPages:

Common request examples

Create a customer

Create a conversation

Register a webhook


Error responses

All errors follow this shape:
Common error codes: See the Error Handling guide for full details and code examples.

Rate limits

Rate limits are enforced per API key. Every response includes these headers:
X-RateLimit-Reset is a Unix timestamp. When you receive a 429, wait until that timestamp before retrying. Default limits by plan: See the Rate Limits guide for backoff examples and per-key custom limits.

API reference and Swagger UI

The interactive API explorer (Swagger UI) is available at:
Note: Swagger UI requires a valid JWT session (log in to your G-Tateth account in the same browser).
The raw OpenAPI 3.0 spec (JSON) — suitable for Postman import, code generators, and contract testing — is at:
A static copy of the spec is also available in the repository at docs/openapi.json.

Using the SDKs

Official SDKs handle auth, pagination, and retries for you.

JavaScript / TypeScript

See the JavaScript SDK documentation for the full reference.

Python

See the Python SDK documentation for the full reference.

Next steps