API Keys

  • Obtaining: To access the API, you’ll need a valid API key. Retrieve it from the SiteGPT billing dashboard. If unavailable, please contact the admin.
  • Authentication: SiteGPT primarily authenticates using API keys.
  • Usage: Always include your API key in the request header:
    'Authorization': 'Bearer <api_key>'
    

JSON Response

Expect responses from the API in JSON format. Ensure your system can parse this data structure. For errors, check the error key within the JSON response.

Handling Authentication Errors

If your API key is absent, not formatted correctly, or invalid, you’ll receive a 401 Unauthorized HTTP response.

Support & Assistance

For assistance or further queries, reach out to us.