API Reference
Generate embed token
Generates a JWT token for embedded authentication.
The token can be used to authenticate users in embedded contexts, such as
iframe integrations. If a user with the provided email doesn't exist,
a new user account will be created.
Authorizations:
APIKeyHeader
Request Body schema: application/jsonrequired
Customer Id (string) or Customer Id (null) (Customer Id) Existing customer ID to associate with the user | |
email required | string (Email) Email address of the user to generate token for |
name required | string (Name) Full name of the user |
Responses
Request samples
- Payload
Content type
application/json
{- "customer_id": "string",
- "email": "user@example.com",
- "name": "John Doe"
}
Response samples
- 200
- 422
Content type
application/json
{- "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}
AI-powered chat interface for data analysis. Enables natural language interactions with your data sources, generates visualizations, and provides analytical insights. Each conversation maintains context and can perform multi-step analysis tasks.
Send Message
Authorizations:
APIKeyHeader
path Parameters
conversation_id required | string (Conversation Id) |
Request Body schema: application/jsonrequired
text required | string (Text) |
Responses
Request samples
- Payload
Content type
application/json
{- "text": "string"
}
Response samples
- 200
- 422
Content type
application/json
{- "text": "string",
- "role": "user",
- "visualization": "string"
}
Get Messages
Authorizations:
APIKeyHeader
path Parameters
conversation_id required | string (Conversation Id) |
query Parameters
limit | integer (Limit) Default: 100 |
Next Token (string) or Next Token (null) (Next Token) |
Responses
Response samples
- 200
- 422
Content type
application/json
{- "messages": [
- {
- "text": "string",
- "role": "user",
- "visualization": "string"
}
], - "next_token": "string"
}