Getting your API key
API keys are generated from the Scalysis dashboard. Log in at https://app.scalysis.com, open the Integrations section in the sidebar, and click API Keys. From there, click Create new key, give it a meaningful label so you can identify it later (for example,production-backend or staging-tests), and copy the key immediately after it is created.
All Scalysis API keys begin with the prefix sca_ followed by a long random string, for example:
Using your API key
Scalysis supports two equivalent header formats for passing your API key. Use whichever fits better with your HTTP client or existing conventions — both grant the same level of access.Required headers for POST requests
Any request that sends a JSON body — such as triggering a call or creating a campaign — must also include theContent-Type: application/json header. Without it, the Scalysis API cannot parse the request body and will return an error.
GET requests, such as fetching a call outcome, do not require a Content-Type header because they carry no body.
As a rule of thumb: if you’re sending a
-d flag (or any request body) in your HTTP client, always include Content-Type: application/json alongside your authentication header.Authentication errors
If your API key is missing, malformed, or has been revoked, the Scalysis API responds with an HTTP401 Unauthorized status and a JSON error body:
401 response:
- You forgot to include the authentication header entirely.
- You copied the key incorrectly — double-check for missing characters or accidental whitespace.
- The key was revoked from the dashboard (for example, after a suspected leak).
- You are using a key generated for a different Scalysis account.