Skip to main content
Building in Node.js or PHP? Use an official SDK instead — it handles authentication, retries, and error types for you.

1. Create an API key

In your Nateq dashboard, open Settings → Developers → API Keys and create a key. Choose the scopes it needs (for example conversations:read). You’ll see the key once — copy it somewhere safe.
  • Production keys start with tg_live_
  • Sandbox keys start with tg_test_

2. Make a request

Authenticate by passing the key as a Bearer token in the Authorization header.

3. Read the response

Every response follows the same envelope:
On failure, success is false and error carries a machine-readable code:
That’s it — you’re authenticated. Head to the API Reference to explore every endpoint with a live console.