SketricGen Agent Response API
Overview
The SketricGen Agent Response API allows you to send messages to your SketricGen AI agents and receive AI-powered responses. This API enables seamless integration between your applications and SketricGen conversational AI.Base Information
- Endpoint:
POST https://api.sketricgen.ai/v1/agent-response
- Authentication: API Key + User ID
- Content Type:
application/json
- Method: POST
Authentication
All requests must include authentication headers:Header | Type | Required | Description |
---|---|---|---|
X-API-KEY | string | ✅ | User’s API key for authentication |
X-USER-ID | string | ✅ | User’s UUID for identification |
Request Schema
Headers
Request Body
Parameters
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 |
Response Schema
Success Response (200)
Response Fields
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 |
Error Responses
Authentication Required (401)
Invalid Request (400)
Testing
cURL Example
Getting Started
1. Obtain API Credentials
- Get your API key from your SketricGen dashboard
- Note your User ID from your account settings
2. Set Up Your Agent
- Create and configure your AI agent in the SketricGen platform
- Note the
agent_id
for API calls
Last Updated: June 18, 2025