REST API Documentation
Integrate SpikeCore AI into your tools and workflows
Base URL
All API endpoints are versioned under /api/v1/. Requests and responses use JSON unless otherwise noted (file uploads use multipart/form-data).
Authentication
Authenticate by obtaining an access token via the login endpoint, then include it as a Bearer token in subsequent requests.
1. Get an access token
curl -X POST https://spikecore.ai/api/v1/auth/login \
-H "Content-Type: application/json" \
-d '{"email": "you@company.com", "password": "your-password"}'2. Use the token
curl https://spikecore.ai/api/v1/projects \ -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
Token expiry: Access tokens expire after 30 minutes. Use the refresh endpoint to obtain a new one without re-authenticating. Each API call consumes credits based on the action performed.
Rate Limits
Free
60 requests/min
Pro / Business
300 requests/min
Enterprise
1,000 requests/min
Exceeding the limit returns 429 Too Many Requests with a Retry-After header.
Endpoints
/api/v1/auth/login/api/v1/auth/refresh/api/v1/auth/meAUTH/api/v1/projectsAUTH/api/v1/projectsAUTH/api/v1/projects/{id}AUTH/api/v1/projects/{id}AUTH/api/v1/projects/{id}AUTH/api/v1/projects/{id}/uploadAUTH/api/v1/projects/{id}/questionsAUTH/api/v1/projects/{id}/extractAUTH/api/v1/ai/generateAUTH/api/v1/ai/generate-batchAUTH/api/v1/questions/{id}AUTH/api/v1/knowledgeAUTH/api/v1/knowledgeAUTH/api/v1/knowledge/uploadAUTH/api/v1/knowledge/{id}AUTH/api/v1/compliance/validateAUTH/api/v1/ai/red-teamAUTH/api/v1/ai/gap-analysisAUTH/api/v1/opportunitiesAUTH/api/v1/opportunities/{id}AUTH/api/v1/opportunities/{id}/go-no-goAUTH/api/v1/credits/balanceAUTH/api/v1/credits/usageAUTHError Responses
All errors return a JSON body with a detail field.
| Code | Meaning |
|---|---|
| 400 | Bad Request — invalid parameters or body |
| 401 | Unauthorized — missing or expired token |
| 403 | Forbidden — insufficient permissions or credits |
| 404 | Not Found — resource does not exist |
| 409 | Conflict — duplicate resource |
| 422 | Validation Error — request body failed schema validation |
| 429 | Rate Limited — too many requests |
| 500 | Internal Server Error — contact support |
Need help integrating? Reach out at support@spikecore.ai or visit the Contact page.