API reference
Every endpoint of the bubblr API, with a request, a response and an SDK example for each.
| Base URL | https://api.bubblr.io |
|---|---|
| Authentication | Authorization: Bearer sk_live_… (API keys) |
| Format | JSON, snake_case, ISO 8601 times in UTC |
| Errors | { "error": { "code", "message" } } (every code) |
| Sends and calls | Need an Idempotency-Key header |
| Pages | limit and before; answers carry has_more and next_before |
| OpenAPI 3.1 | https://api.bubblr.io/openapi.json |
Lines
Your phone lines (called profiles in the API, prf_…), whether each one works, and its activity.
Messages
Send iMessage and SMS, read and search messages, react, and upload files to send.
- POSTSend a message
/v1/profiles/{profile_id}/messages - GETList and search messages
/v1/profiles/{profile_id}/messages - POSTSend a message (key with one line)
/v1/messages - GETGet a message
/v1/profiles/{profile_id}/messages/{message_id} - POSTReact to a message
/v1/profiles/{profile_id}/messages/{message_id}/reactions - POSTUpload a file to send
/v1/profiles/{profile_id}/uploads - GETDownload an attachment
/v1/attachments/{attachment_id}
Chats
Conversations on a line, their messages and files, typing indicators and read receipts.
- GETList chats
/v1/profiles/{profile_id}/chats - GETGet a chat
/v1/profiles/{profile_id}/chats/{chat_id} - PATCHAssign a chat or mark it seen
/v1/profiles/{profile_id}/chats/{chat_id} - GETList a chat's messages
/v1/profiles/{profile_id}/chats/{chat_id}/messages - GETList a chat's files
/v1/profiles/{profile_id}/chats/{chat_id}/attachments - POSTMark a chat read
/v1/profiles/{profile_id}/chats/{chat_id}/read - POSTShow typing
/v1/profiles/{profile_id}/typing
Drafts
Messages that draft-only keys write and a person approves before they go out.
Events
The live event stream (Server-Sent Events).
Webhooks
Endpoints that receive signed events, their deliveries and retries.
- GETList webhooks
/v1/webhooks - POSTCreate a webhook
/v1/webhooks - GETGet a webhook
/v1/webhooks/{webhook_id} - PATCHUpdate a webhook
/v1/webhooks/{webhook_id} - DELETEDelete a webhook
/v1/webhooks/{webhook_id} - POSTRotate a webhook's secret
/v1/webhooks/{webhook_id}/rotate-secret - POSTSend a test event
/v1/webhooks/{webhook_id}/test - GETList deliveries
/v1/webhooks/{webhook_id}/deliveries - POSTReplay a delivery
/v1/webhooks/{webhook_id}/deliveries/{delivery_id}/replay
Contacts
Names, companies, tags and notes your team keeps on the people it talks to.
- GETList contacts
/v1/contacts - GETList tags
/v1/contacts/tags - GETGet a contact
/v1/contacts/{address} - PATCHUpdate a contact
/v1/contacts/{address} - GETList notes
/v1/contacts/{address}/notes - POSTAdd a note
/v1/contacts/{address}/notes - PATCHEdit a note
/v1/contacts/{address}/notes/{note_id} - DELETEDelete a note
/v1/contacts/{address}/notes/{note_id} - GETList a contact's chats
/v1/contacts/{address}/conversations - GETList a contact's calls
/v1/contacts/{address}/calls
Calls
The call log, placing calls, transfers, hang-ups and voicemail.
- GETGet a line's calling
/v1/profiles/{profile_id}/calling - GETGet the team's calling
/v1/calling - GETList calls
/v1/profiles/{profile_id}/calls - POSTPlace a call
/v1/profiles/{profile_id}/calls - GETGet a call
/v1/calls/{call_id} - GETGet a call on a line
/v1/profiles/{profile_id}/calls/{call_id} - POSTTransfer a call
/v1/calls/{call_id}/transfer - POSTHang up a call
/v1/calls/{call_id}/hangup - GETDownload a voicemail
/v1/calls/{call_id}/recording
Voice agents
Connect your voice AI over SIP or a stream, and choose who answers the line's calls.
- GETList voice endpoints
/v1/profiles/{profile_id}/voice-endpoints - POSTAdd a voice endpoint
/v1/profiles/{profile_id}/voice-endpoints - GETGet a voice endpoint
/v1/profiles/{profile_id}/voice-endpoints/{endpoint_id} - PATCHUpdate a voice endpoint
/v1/profiles/{profile_id}/voice-endpoints/{endpoint_id} - DELETEDelete a voice endpoint
/v1/profiles/{profile_id}/voice-endpoints/{endpoint_id} - POSTRotate a voice endpoint's secret
/v1/profiles/{profile_id}/voice-endpoints/{endpoint_id}/rotate-secret - POSTTest a voice endpoint
/v1/profiles/{profile_id}/voice-endpoints/{endpoint_id}/test - GETGet call routing
/v1/profiles/{profile_id}/call-routing - PUTSet call routing
/v1/profiles/{profile_id}/call-routing - GETGet the voicemail greeting
/v1/profiles/{profile_id}/voicemail-greeting - PUTUpload a voicemail greeting
/v1/profiles/{profile_id}/voicemail-greeting - DELETEDelete the voicemail greeting
/v1/profiles/{profile_id}/voicemail-greeting
Account
The calling key, and prices.