Authentication

Every API request must include your API key in the Authorization header.

Header format

Authorization: Bearer nsc_live_YOUR_API_KEY

Getting your key

  1. Sign in at nascentist.ai
  2. Go to Dashboard → API Keys
  3. Click "Create new key"
  4. Copy the key immediately (shown only once)

Security rules

  • Never put API keys in client-side JavaScript
  • Never commit keys to Git
  • Use environment variables (.env files)
  • Rotate keys regularly
  • Revoke immediately if compromised

Error responses

StatusCodeDescription
401authentication_errorMissing or invalid API key
403permission_deniedAPI key has been revoked

Example error response

{
  "error": {
    "code": "authentication_error",
    "message": "Invalid API key"
  }
}