API documentation for SketricGen Agent Response
POST https://api.sketricgen.ai/v1/agent-response
application/json
Header | Type | Required | Description |
---|---|---|---|
X-API-KEY | string | ✅ | User’s API key for authentication |
X-USER-ID | string | ✅ | User’s UUID for identification |
Parameter | Type | Required | Description |
---|---|---|---|
message | string | ✅ | The user’s message text to process |
agent_id | string | ✅ | SketricGen agent identifier |
contact_id | string | ❌ | Unique identifier for the contact/conversation. If not provided, a random ID will be generated |
Field | Type | Description |
---|---|---|
success | boolean | Indicates if the request was successful |
agent_response | string | AI-generated response from your SketricGen agent |
contact_id | string | Contact identifier for conversation continuity |
agent_id
for API calls