Skip to content

List custom fields

GET
/space/custom_field
curl --request GET \
--url 'https://api.aelyst.ai/v1/space/custom_field?limit=10' \
--header 'Authorization: Bearer <token>'

Get a list of all the custom fields in the workspace.

limit
integer
default: 10 >= 1 < 100 >= 1 characters <= 100 characters

Number of items to return i.e. page size.

cursorId
integer

Pointer to the contact id from where the next batch of records should start from.

Media typeapplication/json
object
items
Array<object>
object
id
required

Custom field ID.

integer
name
required

Name of the custom field.

string
description
required
string
dataType
required

Type of the data stored in this custom field.

string
Allowed values: text list checkbox email number url date time
allowedValues

List of enum values allowed to be stored in this field. This property is applicable only if the dataType is list.

Array<string>
pagination
object
next
required
string
previous
required
string
Example
{
"items": [
{
"id": 123,
"name": "customer_id",
"description": "Customer ID",
"dataType": "text"
}
],
"pagination": {
"next": "https://api.aelyst.ai/space/contact_field?limit=10&cursorId=10",
"previous": "https://api.aelyst.ai/space/contact_field?limit=10&cursorId=-10"
}
}
Media typeapplication/json
object
code
integer
message
string
Example
{
"code": 400,
"message": "Validation error."
}
Media typeapplication/json
object
code
integer
message
string
Example
{
"code": 401,
"message": "UN_AUTHORIZED"
}
Media typeapplication/json
object
code
integer
message
string
Example
{
"code": 429,
"message": "Too Many Requests"
}
Retry-After
number
Example
1

Number of seconds until you can retry the request

X-RateLimit-Limit
number
Example
10

Number of request allowed for this end point

X-RateLimit-Remaining
number
Example
5

Number of request remaining for this end point

Media typeapplication/json
object
code
integer
message
string
Example
{
"code": 500,
"message": "Unexpected error occurred"
}