Customer Traits

Create Customer Trait

Changed on

Create a new customer trait definition for an agent.

Args: trait_request: The trait creation request data request: FastAPI request object auth: Authentication credentials

Returns: CustomerTraitResponse with the created trait details

post/v1/create-customer-trait

Request

  • Base URL
    https://api.getbluejay.ai
  • URL
    https://api.getbluejay.ai/v1/create-customer-trait
  • Auth
    HTTPBearer (a scheme the document does not define)

Headers

X-Organization-Idstring
X-API-Keystring required

API key required to authenticate requests.

Request body

agent_idinteger required

ID of the agent this trait belongs to

namestring required

Name of the trait

data_type'BOOLEAN' | 'STRING' | 'DATE' | 'NUMBER' required

Enum for trait data types.

default_valueunknown

Response

Successful Response

idstring required

Unique identifier for the customer trait

agent_idinteger required

ID of the agent this trait belongs to

namestring required

Name of the trait

data_type'BOOLEAN' | 'STRING' | 'DATE' | 'NUMBER' required

Enum for trait data types.

default_valueunknown
created_atstring date-time required

When the trait was created

Changes