API Authentication

This guide explains how to authenticate your requests to the CognisentAI API. Proper authentication ensures that only authorized users can access our API endpoints.

Authentication Methods

CognisentAI uses API keys for authentication. Each request to the API must include a valid API key in the header.

Obtaining an API Key

  1. Log in to your CognisentAI account
  2. Navigate to the API section in your dashboard
  3. Click on "Generate New API Key"
  4. Copy and securely store your API key

Important:

Never share your API key publicly or commit it to version control systems.

Using Your API Key

Include your API key in the Authorization header of each request:

Authorization: Bearer YOUR_API_KEY

Example Request

curl -X GET "https://api.cognisentai.com/v1/properties" \
  -H "Authorization: Bearer YOUR_API_KEY"

API Key Security

  • Rotate your API keys regularly
  • Use different API keys for different environments (development, staging, production)
  • Implement IP whitelisting for additional security

Need Help?

If you're having trouble with API authentication, please contact our support team at api-support@cognisentai.com or refer to our detailed API documentation.