API
Recipes
Text a contact, list callbacks, draft a review reply.
Prove the token
GET /me is read-only and returns identity plus pulses.
- Copy a tb_cus_ token from Settings → API.
- GET /me with Authorization: Bearer.
- You should see identity.email and inbox_pulse, not a capabilities object.
Who hasn't texted back
GET /inbox?filter=callbacks is missed-call texts with no reply.
- GET /inbox?filter=callbacks.
- Each item has contact_id, phone, and age_minutes.
- filter=open is the live inbox. callbacks is we-texted-they-never-replied.
Text a contact
POST /contacts/{id}/messages sends as soon as the key is write-mode.
- GET /contacts?q= to find the id.
- Turn write on for the token.
- POST /contacts/{id}/messages with { body } and an Idempotency-Key header.
Draft a review reply
POST /reviews/{id}/draft writes a reply. It does not publish it.
- GET /reviews and pick an unreplied id.
- POST /reviews/{id}/draft — this drafts.
- Approve or decline later with POST /actions/{id}/decide.
curl -X POST "$TB/contacts/ct_01/messages" \
-H "Authorization: Bearer $TB_TOKEN" \
-H "Idempotency-Key: job-8841" \
-H "Content-Type: application/json" \
-d '{:}'