Prerequisites
- A Clix project created at console.clix.so
- A Secret API Key prefixed with
clix_sk_ - An HTTP client that can send JSON and read SSE
Base URL
Step 1: Read the Public Agent Card
The public Agent Card requires no authentication.| Field | Meaning |
|---|---|
supportedInterfaces | Endpoint URL and binding metadata |
capabilities | streaming, pushNotifications, extendedAgentCard |
securitySchemes | Required header auth scheme |
skills | The four Clix skills and examples |
Step 2: Fetch the Authenticated Extended Card
GetExtendedAgentCard is an authenticated JSON-RPC method on /a2a.
The current Clix implementation returns the same v1 Agent Card schema as the public card, with a project-aware description.
Step 3: Send Your First Task
This example runs thecreate-user skill synchronously with SendMessage.
| Field | Meaning |
|---|---|
message.messageId | Unique message ID and fallback idempotency key |
message.role | Use "user" for client-authored messages |
message.parts[].data.skill | Explicit Clix skill selector |
| Header | Meaning |
|---|---|
X-Request-ID | Response header for tracing and support investigations |
Step 4: Stream Status Updates with SSE
UseSendStreamingMessage when you want task progress over Server-Sent Events.
Step 5: Read the Task Later
You can re-read the task directly or list tasks for a context.ListTasks returns tasks, nextPageToken, pageSize, and totalSize. On follow-up cursor requests, the current Clix implementation returns totalSize: 0, so capture the first page if you need the total count.
Step 6: Register a Task Webhook
Task push notifications are webhooks for task lifecycle events.method is tasks/pushNotification and whose event payload is inside params.result.
Authentication Errors
If authentication fails,/a2a returns HTTP errors instead of a JSON-RPC method result.
| Status | Cause | Fix |
|---|---|---|
401 Unauthorized | Missing or invalid secret key | Send a valid X-API-Key header |
403 Forbidden | Public or browser-safe API key | Switch to a Secret API Key with the clix_sk_ prefix |
Next Steps
API Reference
Review every method, data type, and error code
Advanced Features
See webhook payloads, SSE behavior, and idempotency details
Skills
Pick the exact payload shape for each built-in skill