Developers
API Live
For developers building on Interactalk. If you are not building software, you do not need this page — your agents work without it.
Quickstart
- 1Copy your credentials. Use the base URL and publishable key below — they are ready now, no setup needed.
- 2Get a user token. Sign in with the CLI (
interactalk login). The token proves who you are and scopes every request to your organisations only. It lasts about an hour. - 3Make your first request. Run the example below. You will get your own data back — nothing else is reachable.
Credentials
https://ojporpmkogpceyxxptzt.supabase.co/rest/v1/sb_publishable_ivyTYN91u0aW9XeE6EhFUw_n_ZPNgjDSafe to use in browser code. It identifies the project, not you — it is already in this site’s JavaScript.
Authorization: Bearer <your token>Never share it and never put it in public code. Get one with interactalk login, or POST your email and password as JSON to https://ojporpmkogpceyxxptzt.supabase.co/auth/v1/token?grant_type=password and copy access_token from the answer.
Every request sends both headers: apikey (the publishable key) and Authorization (your token). Row-level security in the database enforces the scoping — not the client.
Endpoints
| Call | Returns |
|---|---|
GET/organizations | The organisations you belong to |
GET/ai_agents?organization_id=eq.<ORG_ID> | Agents in an organisation |
GET/voice_sessions?organization_id=eq.<ORG_ID> | Calls (voice sessions) in an organisation |
GET/conversation_messages?session_id=eq.<CALL_ID>&order=sequence_number.asc | One call’s transcript, in order |
POSThttps://interactalk-vapi.sojibahmmed.workers.dev/vapi/token | A short-lived token to start a browser call with your agent — this is what the Talk panel uses. Send your user token as the Bearer header and a JSON body of {"organization_id": "…", "agent_id": "…"} |
Filters use eq., order= and limit= query parameters. Ask for another organisation’s id and you get an empty list — the security rules, not the client, enforce that.
First request — list your latest calls
curl "https://ojporpmkogpceyxxptzt.supabase.co/rest/v1/voice_sessions?organization_id=eq.<ORG_ID>&order=created_at.desc&limit=20" \ -H "apikey: sb_publishable_ivyTYN91u0aW9XeE6EhFUw_n_ZPNgjD" \ -H "Authorization: Bearer <your token>"
Replace <ORG_ID> with your organisation id — run interactalk orgs to see it. An empty list for another organisation’s id is correct: the security rules enforce that.