API key for authenticating requests to the Thrads API. You can obtain your API key from the Thrads Platform dashboard.
Request model for sponsored chatbot prompts with conversation context and targeting options
ISO 3166-1 alpha-2 country code (e.g., 'US', 'GB').
2Optional unique identifier for the user. Provide the same value for the same user across conversations.
Optional identifier for the chat session or conversation. Use the same value within the same conversation.
Conversation context MUST contain exactly two fields: 'user' and 'chatbot', both populated with strings representing the latest message exchange
Region or state (optional).
City (optional).
Operating system of the client (optional).
If true forces ad generation; if false inhibits it; null for default behavior.
Number of conversation turns to wait before showing the first ad. Ignored when the sponsored prompt is used as an opener (only relevant mid-conversation).
0 <= x <= 20Number of turns to wait before showing the next ad. Ignored when the sponsored prompt is used as an opener (only relevant mid-conversation).
0 <= x <= 20Whether this is a production request (true) or sandbox/testing (false). Only production requests count for monetization. Ignored when the sponsored prompt is used as an opener (only relevant mid-conversation).
Version of the Thrads API being used
Unique identifier for this API request for tracking and debugging
ISO 8601 timestamp when the response was generated
URL to the API documentation for reference
Total processing time for the request in seconds
Always 'success' for successful requests
success Human-readable message describing the successful response
Response payload containing the requested data AI-generated sponsored prompt with brand information and tracking capabilities for chatbot integration