Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

Authentication

All API requests require authentication using Bearer tokens.

Authorization Header

Include your API token in the Authorization header:

HeaderValueDescription
AuthorizationBearer TOKENYour API token

Example

curl "https://api.pinner.xyz/api/upload-limit" \
  -H "Authorization: Bearer YOUR_API_TOKEN"

Getting Your API Token

  1. Sign up at account.pinner.info
  2. Navigate to your account settings
  3. Generate a new API token

Environment Variables

Set the PINNER_API_KEY environment variable:

export PINNER_API_KEY="your-api-token"

Or use PINNER_AUTH_TOKEN for CLI operations:

export PINNER_AUTH_TOKEN="your-api-token"

Token Security

  • Keep your token secure and never expose it in client-side code
  • Use environment variables to store tokens
  • Rotate tokens if they are compromised

Error Responses

401 Unauthorized:
{
  "error": "unauthorized",
  "message": "Invalid or missing API token"
}
403 Forbidden:
{
  "error": "forbidden",
  "message": "Insufficient permissions"
}

See Also