Developers

The Texa API

Make sandbox and live API keys, keep them safe, find the documentation, and see every request in the log.

Help centreUpdated on

The Texa API builds Texa AI into your own app, website or backend: open conversations, send customers’ messages, get Texa AI’s replies, and hand over to your team in Texa Desk.

Make a key

  1. Go to Texa AI → Developers.
  2. Choose New API key, give it a Name for what will use it (such as “mobile app backend”), and choose the Environment:
    • Sandbox keys reach a copy of your setup, where nothing reaches a real customer. Free, up to 2,000 requests a month.
    • Live keys reach your customers, and use credits.
  3. Copy the key, and choose I have copied it. This is the only time it’s shown. If it’s lost, revoke it and make another.

Keep keys on your server, never in an app or a web page.

Where to start

When Texa AI hands over

Under When Texa AI hands over, choose who answers when a conversation from your app needs a person. The conversation appears in Texa Desk, in an inbox for your app, with Texa AI’s summary. Your team’s reply goes back to your server as an event.

Good to know

  • Rate limits: sandbox keys allow 60 requests a minute. A request over the limit gets 429 with Retry-After.
  • Idempotency: send an Idempotency-Key header, so a retried request never opens two conversations or sends a message twice.
  • An empty balance: the API answers 402 until you top up.

The request log

Texa AI → Developers → Logs lists every request made with your keys in the last 30 days: what was asked, how it went and how long it took, never the request’s body. Quote a request’s id to Texa support if you need help with it.

Events

To hear about replies, hand-overs and closed conversations as they happen, add a webhook. See Webhooks.

More in Developers

  • Webhooks Get each event pushed to your server as it happens, signed so you know it came from Texa, and check every delivery.
  • Texa AI in your website and app Add Texa AI to your own website or mobile app, as a support chat for visitors and an agent that works in signed-in customers' accounts.
  • SDKs Install the Texa SDK for Python, JavaScript, React Native, Go, Swift or PHP, and where to find each one's guide.