API Reference
API Reference

List Users

List the existing users.

GET/api/v1/users/

Authentication

Syllable-API-Keyrequired

Send Syllable-API-Key in the header.

Need a credential? Create or manage an API token in the Syllable Console.

Parameters

Query parameters

page integer | null query optional

The page number from which to start (0-based)

Default 0Minimum 0Example 0
limit integer query optional

The maximum number of items to return

Default 25Minimum 0Example 25
search_fields enum<string>[] query optional

String names of fields to search. Correspond by index to search field values

Default []Example name
Item schema
itemsenum<string>required

Names of user fields supported for filtering/sorting on list endpoint.

Allowed values ["email","first_name","last_name","role_id","role_name","email_first_name_last_name","activity_status","last_updated"]
search_field_values string[] query optional

Values of fields to search. Correspond by index to search fields. Unless field name contains "list", an individual search field value cannot be a list

Default []Example Some Object Name
Item schema
itemsstringrequired
order_by enum<string> | null query optional

The field whose value should be used to order the results

Allowed values ["email","first_name","last_name","role_id","role_name","email_first_name_last_name","activity_status","last_updated"]Example name
order_by_direction enum<string> | null query optional

The direction in which to order the results

Allowed values ["asc","desc"]
fields enum<string>[] | null query optional

The fields to include in the response

Default []Example []
Item schema
itemsenum<string>required

Names of user fields supported for filtering/sorting on list endpoint.

Allowed values ["email","first_name","last_name","role_id","role_name","email_first_name_last_name","activity_status","last_updated"]
start_datetime string | null query optional

The start datetime for filtering results

Example 2023-01-01T00:00:00Z
end_datetime string | null query optional

The end datetime for filtering results

Example 2024-01-01T00:00:00Z

Responses

200Successful Response

application/json

response ListResponse_UserResponse_ required
5 fields
itemsUserResponse[]required

List of items returned from the query

Item schema
itemsUserResponserequired

Information about a user.

13 fields
emailstringrequired

Email address of the user

first_namestring | nulloptional

First name of the user

last_namestring | nulloptional

Last name of the user

role_idintegerrequired

ID of the role assigned to the user

utmDaoUtm | nulloptional

Optional UTM campaign attribution to record in user_metadata.

5 options
utm_sourcestring | nulloptional
Maximum length 256
utm_mediumstring | nulloptional
Maximum length 256
utm_campaignstring | nulloptional
Maximum length 256
utm_termstring | nulloptional
Maximum length 256
utm_contentstring | nulloptional
Maximum length 256
last_updated_commentsstring | nulloptional

Comments for the most recent edit to the user.

idintegerrequired

Internal ID of the user

role_namestringrequired

Name of the role assigned to the user

email_sentbooleanrequired

Whether the welcome email has been sent to the user

activity_statusenum<string>required

The activity status of the user

Allowed values ["not_invited","invited","active"]
last_updatedstring (date-time)required

The timestamp of the most recent update to the user

last_updated_bystring | nulloptional

The email address of the user who last updated the user

last_session_atstring (date-time) | nulloptional

The timestamp of the user's last session

pageintegerrequired

The page number of the results (0-based)

page_sizeintegerrequired

The number of items returned per page

total_pagesinteger | nulloptional

The total number of pages of results given the indicated page size

total_countinteger | nulloptional

The total number of items returned from the query

Response example
{
  "items": [
    {
      "email": "string",
      "first_name": "string",
      "last_name": "string",
      "role_id": 0,
      "utm": "string",
      "last_updated_comments": "string",
      "id": 0,
      "role_name": "string",
      "email_sent": true,
      "activity_status": "string",
      "last_updated": "string",
      "last_updated_by": "string",
      "last_session_at": "string"
    }
  ],
  "page": 0,
  "page_size": 0,
  "total_pages": "string",
  "total_count": "string"
}
422Validation Error

application/json

response HTTPValidationError required
1 field
detailValidationError[]optional
Item schema
itemsValidationErrorrequired
3 fields
locstring | integer[]required
Item schema
itemsstring | integerrequired
2 options
Option 1stringrequired
Option 2integerrequired
msgstringrequired
typestringrequired
Response example
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}