Getting Started

Authentication

Secure your API requests with API key authentication

API Keys

AdaptlyPost uses API keys to authenticate REST API requests. You can generate and manage API keys from your dashboard under Settings > API Tokens.

Keep your API key secure

Never expose your API key in client-side code, public repositories, or frontend applications. Always use environment variables or a secure vault to store your keys.

Using Your API Key

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

Authorization Header
Authorization: Bearer your_api_key_here

Example Request

curl https://api.adaptlypost.com/api/v1/social-accounts \
  -H "Authorization: Bearer sk_live_abc123def456"

Authentication Errors

If your API key is missing, invalid, or expired, you will receive one of these responses:

401 Unauthorized
{
  "statusCode": 401,
  "message": "Invalid or missing API key",
  "error": "Unauthorized"
}
403 Forbidden
{
  "statusCode": 403,
  "message": "API key does not have permission for this resource",
  "error": "Forbidden"
}