curl --request GET \
--url https://api.orq.ai/v2/contacts \
--header 'Authorization: Bearer <token>'{
"data": [
{
"_id": "contact_01ARZ3NDEKTSV4RRFFQ69G5FAV",
"external_id": "user_12345",
"display_name": "Jane Smith",
"email": "[email protected]",
"avatar_url": "https://example.com/avatars/jane-smith.jpg",
"tags": [
"premium",
"beta-user"
],
"metadata": {
"department": "Engineering",
"role": "Senior Developer"
},
"created": "2024-01-15T10:30:00Z",
"updated": "2024-01-15T10:30:00Z"
},
{
"_id": "contact_01ARZ3NDEKTSV4RRFFQ69G5XY",
"external_id": "user_67890",
"display_name": "John Doe",
"email": "[email protected]",
"tags": [
"enterprise"
],
"metadata": {
"department": "Sales",
"role": "Account Manager"
},
"created": "2024-01-14T09:15:00Z",
"updated": "2024-01-14T09:15:00Z"
}
],
"has_more": false
}Retrieves a paginated list of contacts in your workspace. Use pagination parameters to navigate through large contact lists efficiently.
curl --request GET \
--url https://api.orq.ai/v2/contacts \
--header 'Authorization: Bearer <token>'{
"data": [
{
"_id": "contact_01ARZ3NDEKTSV4RRFFQ69G5FAV",
"external_id": "user_12345",
"display_name": "Jane Smith",
"email": "[email protected]",
"avatar_url": "https://example.com/avatars/jane-smith.jpg",
"tags": [
"premium",
"beta-user"
],
"metadata": {
"department": "Engineering",
"role": "Senior Developer"
},
"created": "2024-01-15T10:30:00Z",
"updated": "2024-01-15T10:30:00Z"
},
{
"_id": "contact_01ARZ3NDEKTSV4RRFFQ69G5XY",
"external_id": "user_67890",
"display_name": "John Doe",
"email": "[email protected]",
"tags": [
"enterprise"
],
"metadata": {
"department": "Sales",
"role": "Account Manager"
},
"created": "2024-01-14T09:15:00Z",
"updated": "2024-01-14T09:15:00Z"
}
],
"has_more": false
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
A limit on the number of objects to be returned. Limit can range between 1 and 50, and the default is 10
1 <= x <= 50A cursor for use in pagination. starting_after is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, ending with 01JJ1HDHN79XAS7A01WB3HYSDB, your subsequent call can include after=01JJ1HDHN79XAS7A01WB3HYSDB in order to fetch the next page of the list.
A cursor for use in pagination. ending_before is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, starting with 01JJ1HDHN79XAS7A01WB3HYSDB, your subsequent call can include before=01JJ1HDHN79XAS7A01WB3HYSDB in order to fetch the previous page of the list.
Search contacts by display name or email address. Minimum 2 characters required.
"john"
Include usage metrics of the last 30 days for each contact.
List of contacts
list Show child attributes
Unique ULID (Universally Unique Lexicographically Sortable Identifier) for the contact
"contact_01ARZ3NDEKTSV4RRFFQ69G5FAV"
Unique string value to identify the contact user in the customer's system. This should be the same ID you use in your system to reference this user.
1 - 120"user_12345"
Show child attributes
Total cost in dollars of the last 30 days
100
Total tokens of the last 30 days
1000
Total requests of the last 30 days
1000
P50 error rate of the last 30 days
22
Display name or nickname of the contact user. This is typically shown in user interfaces.
"Jane Smith"
Email address of the contact user
URL linking to the contact user's avatar image
"https://example.com/avatars/jane-smith.jpg"
Array of tags associated with the contact. Useful for organizing and filtering contacts by categories, departments, or custom classifications.
["premium", "beta-user", "enterprise"]
Additional custom metadata associated with the contact as key-value pairs. Use this to store any extra information specific to your application.
Show child attributes
{
"department": "Engineering",
"role": "Senior Developer",
"subscription_tier": "premium",
"last_login": "2024-01-15T10:30:00Z"
}
The date and time the resource was created
The date and time the resource was last updated
Was this page helpful?