Skip to content
Browse articles
API reference

Admin API

Server-to-server endpoints authenticated with your workspace secret key (a44_sec_…) to manage contacts, events, and conversations.

Agent44Updated 1 min read

On this page

Server-to-server endpoints for your backend. Authenticate with a secret server key in Authorization: Bearer a44_sec_… (never ship a secret key in an app or browser). Public SDK keys (a44_pub_…) are rejected with 401.

GET /v1/admin/contacts#

Lists contacts in the key's workspace, newest first.

Query parameter

Description

external_user_id

Filter to the contact with this app user ID.

email

Case-insensitive exact email filter.

limit

Max rows to return (1–100, default 50).

POST /v1/admin/contacts#

Creates or updates a contact by external_user_id, merges attributes, and optionally sets SDK segments.

{
  "external_user_id": "user_8f2c",
  "email": "alice@example.com",
  "name": "Alice",
  "phone": "+1-555-0100",
  "avatar_url": "https://cdn.example.com/alice.png",
  "company": { "name": "Acme", "url": "https://acme.com" },
  "attributes": { "plan": "pro" },
  "segments": ["vip"],
  "overwrite_segments": false
}

POST /v1/admin/contacts/{id}/events#

Records a timeline event on a contact. {id} may be either the contact's UUID or its external_user_id.

{ "name": "Upgraded to Pro", "color": "green", "data": { "plan": "pro_annual" } }

GET /v1/admin/conversations#

Lists conversations in the key's workspace, newest message first.

Query parameter

Description

status

open or closed.

external_user_id

Filter to conversations belonging to this user ID.

limit

Max rows to return (1–100, default 50).

POST /v1/admin/conversations/{id}/messages#

Posts a teammate reply (default) or internal note to a conversation. Replies trigger push, email, and webhook delivery; internal notes stay visible only to your team.

{ "body": "We refunded your last charge.", "kind": "reply" }

Did this answer your question?