Skip to main content
All API requests require a Bearer token in the Authorization header.

API keys

Get your API key from the Developer Dashboard.
Key prefixEnvironment
sqk_live_*Production — real credits, real data
sqk_test_*Sandbox — no credits charged

Making authenticated requests

Include your key in the Authorization header:
curl -X GET https://api.smartlyq.com/v1/me \
  -H "Authorization: Bearer sqk_live_xxxxxxxxxxxx"
Never expose your API key in client-side code, public repositories, or logs.

Scopes

Each key can be limited to specific scopes. Available scopes:
ScopeAccess
articles:readList and get articles
articles:writeGenerate and delete articles
images:read / images:writeImage generation and listing
videos:read / videos:writeVideo generation and listing
social:read / social:writeSocial accounts and posts
audio:read / audio:writeText-to-speech, speech-to-text
urls:read / urls:writeURL shortening
captain:useAI Captain conversations
chatbot:useChatbot management and messaging
media:read / media:writeMedia library
analytics:readAnalytics data
jobs:readAsync job status

Error responses

If your key is missing or invalid, the API returns:
  • 401 Unauthorized — missing or invalid key
  • 403 Forbidden — valid key but insufficient scope
{
  "success": false,
  "error": {
    "code": "UNAUTHORIZED",
    "message": "Missing or invalid API key."
  }
}