GET
/
v1
/
trait

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-site-context
string
required

The x-site-context header is a JSON object that contains information about the source you wish to pull from. The mandatory account is the 24 character identifier found in Copilot. The channel (Sales channel ID), stage (environment name), and date attributes can be used to further narrow the scope of your data source.

Query Parameters

offset
integer

-Optional. Default:0. Number of records you wish to skip before selecting records.

limit
integer

-Optional. Default:10. Limits the number of records returned by the api.

sortBy
enum<string>

-Optional. Default:updatedAt. Returned the sorted records based on this field.

Available options:
updatedAt,
name,
traitId
sortOrder
enum<string>

-Optional. Default:desc. Returned the records order based on this field.

Available options:
desc,
asc
filter
string

-Optional. Return traits list based on the filter

Response

200 - application/json
query
object

it contains data about pagination

data
object[]

list of traits that is retrieved