Service Users were previously called Bot Users.The Bot User API endpoint is still available but will be deprecated in the future.
If you need the Bot Users API reference, you can find it here.
Create Service User
Create a new Service User.Request
POST /service_users
Example request
Parameters
Name | Type | Description |
---|---|---|
name | string | Human-readable name used to identify the Service User. |
active | boolean | Whether or not the Service User is active. |
Response
Returns a 201 response on success.Example response
Fields
Name | Type | Description |
---|---|---|
id | string | Unique API key resource identifier. |
uri | string | URI to the API resource of this Service User |
name | string | Human-readable name used to identify the Service User. |
active | boolean | Whether or not the Service User is active. |
created_at | string | Timestamp when the API key was created, in RFC 3339 format. |
Delete Service User
Delete a Service User by ID.Request
DELETE /service_users/\{id\}
Example request
Response
Returns a 204 response with no body on success.Get Service User
Get the details of a Service User by ID.Request
GET /service_users/\{id\}
Example request
Response
Returns a 200 response on success.Example response
Fields
Name | Type | Description |
---|---|---|
id | string | Unique API key resource identifier. |
uri | string | URI to the API resource of this Service User. |
name | string | Human-readable name used to identify the Service User. |
active | boolean | Whether or not the Service User is active. |
created_at | string | Timestamp when the API key was created, in RFC 3339 format. |
List Service Users
List all Service Users in this account.Request
GET /service_users
Example request
Response
Returns a 200 response on success.Example response
Fields
Name | Type | Description |
---|---|---|
service_users | ServiceUser | List of all Service Users on this account. |
uri | string | URI of the Service Users list API resource. |
next_page_uri | string | URI of the next page, or null if there is no next page. |
ServiceUser fields
Name | Type | Description |
---|---|---|
id | string | Unique API key resource identifier. |
uri | string | URI to the API resource of this Service User. |
name | string | Human-readable name used to identify the Service User. |
active | boolean | Whether or not the Service User is active. |
created_at | string | Timestamp when the API key was created, in RFC 3339 format. |
Update Service User
Update attributes of a Service User by ID.Request
PATCH /service_users/\{id\}
Example request
Parameters
Name | Type | Description |
---|---|---|
id | string | |
name | string | Human-readable name used to identify the Service User. |
active | boolean | Whether or not the Service User is active. |
Response
Returns a 200 response and a copy of the updated entity on success.Example response
Fields
Name | Type | Description |
---|---|---|
id | string | Unique API key resource identifier. |
uri | string | URI to the API resource of this Service User. |
name | string | Human-readable name used to identify the Service User. |
active | boolean | Whether or not the Service User is active. |
created_at | string | Timestamp when the API key was created, in RFC 3339 format. |