Access the Missive API with managed authentication. Read conversations, messages, contacts, and tasks; create drafts, posts, and tasks. All access runs through the Maton gateway and the maton CLI.
Permissions
Suggested read access
In the Console, Read limits the connection to these 22 read-only endpoints, plus deny rules for any write endpoint a broader rule would otherwise match. Endpoints Maton has found to return credentials, start jobs, or spend credits are left out; a few reads that can change state or return a secret depending on their parameters stay in, and their descriptions say how. It is a suggestion: the saved rules are exactly the ones you see, and you can change them with Custom. See Access policy.
Reference
Paths start with v1/: https://public.missiveapp.com/v1/users becomes /missive/v1/users. Responses put their records under a key named after the resource (users, conversations, messages, …).
Connect with maton connection create missive; the Missive connection guide shows where to create the API token.
Users, Organizations, and Teams
maton api '/missive/v1/users'
maton api '/missive/v1/organizations'
maton api '/missive/v1/teams'Response:
{
"users": [
{"id": "a41a00fd-0000-4d7e-9a51-2d7e4f1b8c90", "me": true, "name": "Alex Lee", "email": "you@example.com", "avatar_url": "https://…"}
]
}These lists, like contact books, contact groups, shared labels, and responses, take limit (default 50, up to 200) and offset. Organization, team, and shared label IDs are also shown in Missive under Settings → API → Resource IDs.
Conversations
maton api '/missive/v1/conversations?inbox=true&limit=25'
maton api '/missive/v1/conversations?team_inbox={team_id}'
maton api '/missive/v1/conversations/{conversation_id}/messages'Response:
{
"conversations": [
{
"id": "6d3c9b1c-0000-4a28-8ea6-ea91340b67cc",
"subject": null,
"latest_message_subject": "Question about the order",
"organization": {"id": "{organization_id}", "name": "Acme"},
"assignees": [],
"messages_count": 2,
"authors": [{"name": "Sam Park", "address": "sam@example.com"}],
"shared_labels": [],
"last_activity_at": 1764547200
}
]
}Listing needs a mailbox filter: one of inbox, all, assigned, closed, snoozed, flagged, trashed, junked, drafts, shared_label, team_inbox, team_closed, or team_all. Results are newest first; for the next page, pass until set to the oldest last_activity_at returned. A page may hold more than limit. Messages, comments, drafts, and posts in a conversation page the same way with until (their delivered_at or created_at), up to 10 at a time. GET v1/messages/{id} returns a message with its body; several IDs can be comma-separated. PATCH v1/conversations/{id} closes, reopens, assigns, labels, or moves a conversation.
Drafts and Posts
maton api '/missive/v1/drafts' -X POST -H 'Content-Type: application/json' --input - <<'JSON'
{"drafts": {"subject": "Hello", "body": "Thanks for reaching out.", "to_fields": [{"address": "sam@example.com"}], "from_field": {"address": "you@example.com"}}}
JSONWithout "send": true the draft waits in Missive for the user to review. Add "conversation": "{conversation_id}" to reply in a thread. POST v1/posts adds a post (an integration note) to a conversation.
Contacts, Responses, Tasks
- Contacts:
GET v1/contact_books, thenv1/contacts?contact_book={contact_book_id}(withorder,modified_since,limit,offset);POST v1/contactsandPATCH v1/contacts/{id}create and update them. - Canned responses:
v1/responses, withPOST,PATCH, andDELETE. - Tasks:
GET v1/tasks(withorganization,state, anduntil),POST v1/tasks,PATCH v1/tasks/{id}. - Analytics:
POST v1/analytics/reportsstarts a report and returns its ID; fetchv1/analytics/reports/{id}after about 5 seconds, retrying until it's ready.
Notes
- Authentication: the connection holds a Missive personal API token (starting with
missive_pat-), created under Preferences → API → Create a new token on the Productive plan, and sent as a Bearer token. It acts as its user in every organization, team inbox, and shared account that user can see. - Sending: a draft created with
"send": truesends at once, andsend_atschedules it. - Connection metadata: the token user's
user_id,email, andname, from thev1/usersentry marked"me": true. - Requests:
POSTandPATCHneedContent-Type: application/json, and their body wraps records under the resource name ({"drafts": {...}}). A201may have no body. - Errors:
400an invalid request,401a wrong or revoked token,403a resource the user can't reach,404not found,429rate limited. - Rate limits: 5 concurrent requests, 300 a minute, and 900 every 15 minutes per token.