Overview
Users are people who belong to organizations. Each organization must have at least one owner (created with the organization), and can have additional team members.Base URL
Playground:https://playground.answeringagent.com/api/v1
Production: https://answeringagent.com/api/v1
All endpoints require the X-API-KEY header containing a valid partner API key.
Understanding External IDs
Theexternal_id is your unique identifier for a user from your system:
- Use your existing user IDs (e.g.,
"user_12345","customer_abc") - Makes API calls simple:
GET /users/user_12345/embed-token - Maintains clean mapping between your database and Answering Agent
- Must be unique across all users for your partner account
- User signs up in your system → assigned ID
"cust_789" - Create organization in Answering Agent → use
external_id: "cust_789" - Later: Get embed token →
GET /users/cust_789/embed-token
Key Concepts
Organization Owners vs Additional Users
Organization Owners vs Additional Users
- Owner: Created automatically when you create an organization. Has full permissions.
- Additional Users: Team members you add to the organization after creation.
/users endpoints.When to Use External ID
When to Use External ID
Always! The
external_id is how you reference users in the API:GET /users/{external_id}- Look up user detailsGET /users/{external_id}/embed-token- Get embed token- All other user operations
Can users belong to multiple organizations?
Can users belong to multiple organizations?
Yes! Users can be members of multiple organizations with different roles in each. This is useful for consultants, franchise managers, or team members who work across multiple locations.
1. List Users
| Property | Value |
|---|---|
| Method | GET /users |
| Returns | 200 OK on success |
Query Parameters
Filter users by organization ID
Example
2. Create User
| Property | Value |
|---|---|
| Method | POST /users |
| Returns | 201 Created on success |
Query Parameters
Organization to assign the user to
Request Body
The
locations array is deprecated. Use the dedicated Locations API for better location management.Success Response
The
embed_token is a secure, compact token that authenticates the user when embedding the Answering Agent dashboard. Store this securely and use it with the embed system.- The
external_idis the user’s ID in your system (not Answering Agent’s internal ID) - Must be unique across all of your users (your partner account)
- Use it for all API operations: looking up users, generating embed tokens, etc.
- Provides clean separation between your system and Answering Agent
Error Codes
| Code | Meaning | Typical Cause |
|---|---|---|
| 401 | Unauthorized | Missing or incorrect X-API-KEY. |
| 422 | Validation Error | Required field absent or malformed. |
| 500 | Internal Server Error | Unexpected failure during provisioning. |
3. Get User by External ID
| Property | Value |
|---|---|
| Method | GET /users/{external_id} |
| Returns | 200 OK on success |
Example
The embed token is not returned in user lookup responses for security reasons. Use the dedicated embed token endpoints to retrieve or manage tokens.
4. Get User by Email
| Property | Value |
|---|---|
| Method | GET /users/by-email?email={address} |
| Returns | 200 OK on success |
Example
5. Update User
| Property | Value |
|---|---|
| Method | PATCH /users/{external_id} |
| Returns | 200 OK on success |
Request Body
Success Response
6. Delete User
| Property | Value |
|---|---|
| Method | DELETE /users/{external_id} |
| Returns | 200 OK on success |
Example
Embed Token Management
Get Current Embed Token
| Property | Value |
|---|---|
| Method | GET /users/{external_id}/embed-token |
| Returns | 200 OK on success |
Example
Generate New Embed Token
| Property | Value |
|---|---|
| Method | POST /users/{external_id}/embed-token |
| Returns | 200 OK on success |