Get API Key
Create a key from settings
1. Open Settings → API Keys.
2. Create a new key and copy the secret immediately.
3. Store it in your environment as `PULSE_API_KEY`.
export PULSE_API_KEY="pulse_sk_live_..."Pulse API
Everything needed to authenticate and make your first successful API request.
Get API Key
1. Open Settings → API Keys.
2. Create a new key and copy the secret immediately.
3. Store it in your environment as `PULSE_API_KEY`.
export PULSE_API_KEY="pulse_sk_live_..."Authentication
All v1 routes are API-key protected. Include this header in each request.
Authorization: Bearer YOUR_API_KEYBase URL
https://www.aicoo.io/api/v1First Calls
Recommended first sequence: initialize workspace, then send first agent message.
/api/v1/initIdempotently initializes workspace state and returns folder/file totals.
Parameters
| Name | In | Type | Required |
|---|---|---|---|
| No path/query/body parameters required. | |||
Request Example
curl -X POST https://www.aicoo.io/api/v1/init \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'Example Output
{
"success": true,
"initialized": true,
"workspace": {
"folders": [
{ "id": 1, "name": "General", "parentId": null, "icon": null, "fileCount": 3 }
],
"totalFiles": 3,
"totalSizeBytes": 24576
}
}/api/v1/chatSends a message through the Pulse Agent runtime.
Parameters
| Name | In | Type | Required |
|---|---|---|---|
messagePrompt text for the agent. | body | string | Yes |
userTimezoneIANA timezone. Defaults to UTC. | body | string | No |
streamSet false to disable streaming response events. | body | boolean | No |
Request Example
curl -X POST https://www.aicoo.io/api/v1/chat \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"message": "Give me a concise plan for today",
"userTimezone": "America/New_York",
"stream": true
}'Example Output
{"type":"text-delta","textDelta":"Here is your plan for today..."}
{"type":"tool-call-start","toolName":"list_notes","toolCallId":"call_123"}
{"type":"completion","metadata":{"promptTokens":812,"completionTokens":191,"totalTokens":1003}}Rate Limits
| Tier | Requests/min | Tokens/week |
|---|---|---|
| Free | 10 | 1,200,000 |
| Pro | 60 | 6,000,000 |
| Business | 300 | 25,000,000 |
Common Errors
unauthorizedHTTP 401Missing or invalid API key.
invalid_requestHTTP 400Malformed JSON or input validation failed.
not_foundHTTP 404Resource not found for authenticated user.
parse_errorHTTP 500AI output could not be parsed into expected JSON shape.
server_errorHTTP 500Unhandled server-side failure.
Next Layer
Continue with the dedicated Agent layer for chat and briefing endpoints.
Open Pulse Agent layer