Skip to main content

API keys

Every request to the NextKS API must include an API key in the X-API-Key header. Keys are scoped to your organization (tenant) and tied to the user who created them.
curl -X POST https://app.nextks.com/api/notify \
  -H "X-API-Key: nks_abc123..." \
  -H "Content-Type: application/json" \
  -d '{ ... }'

Creating a key

  1. Sign in to the NextKS dashboard at app.nextks.com
  2. Go to Account
  3. Under API Keys, click Create Key
  4. Give the key a descriptive label (e.g., “CI/CD Pipeline”, “Monitoring Alerts”)
  5. Copy the key immediately — it is shown only once
API keys are hashed before storage. If you lose a key, you must create a new one.

Key properties

PropertyDescription
labelA human-readable name you choose
prefixThe first 8 characters, shown in the dashboard for identification
created_byThe user who generated the key
last_used_atTimestamp of the most recent API call using this key

Error responses

StatusMeaning
401Missing or invalid API key
429Rate limit exceeded — see Rate Limits
{
  "status": "error",
  "details": "Invalid API key"
}

Security notes

  • Keys are transmitted over HTTPS only
  • Each key is SHA-256 hashed before storage — NextKS never stores plaintext keys
  • Admin users can view and revoke any key in the organization via Admin Settings
  • Rotate keys regularly and revoke any that may have been exposed