Documentation Index
Fetch the complete documentation index at: https://docs.apinizer.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The Authentication API provides endpoints for obtaining Personal API Access Tokens, which are required for accessing all other Management API endpoints.Authentication
The token creation endpoint does not require authentication. However, you must provide valid Apinizer credentials (username and password) to obtain a token.Token Usage
Once you have obtained a token, include it in theAuthorization header of all subsequent API requests:
Create Token
Endpoint
Request
Headers
| Header | Value | Required |
|---|---|---|
| Content-Type | application/x-www-form-urlencoded | Yes |
| Accept | application/json | No |
Request Body (URL Encoded)
The request body must be sent asapplication/x-www-form-urlencoded (not JSON).
| Parameter | Type | Required | Description |
|---|---|---|---|
| grant_type | string | Yes | Must be client_credentials |
| client_id | string | Yes | Your Apinizer username |
| client_secret | string | Yes | Your Apinizer password |
Full Request Body Example
Response
Success Response (200 OK)
Response Fields
| Field | Type | Description |
|---|---|---|
| access_token | string | The Personal API Access Token to use for authentication |
| token_type | string | Always Bearer |
| expires_in | integer | Token expiration time in seconds (if applicable) |
Error Response (400 Bad Request)
grant_type parameter is not client_credentials.
Error Response (401 Unauthorized)
Causes
- Invalid username or password
- Account is disabled or locked
- Credentials are incorrect
Error Response (500 Internal Server Error)
cURL Example
Full JSON Body Example
This endpoint uses
application/x-www-form-urlencoded format, not JSON. The example below shows the equivalent data structure:Notes and Warnings
- Security: Never commit credentials or tokens to version control
- Token Storage: Store tokens securely (use environment variables or secret management)
- Token Expiration: Tokens may expire based on configuration. Check
expires_infield - Token Format: Always use
Bearerprefix when including token in Authorization header - Content-Type: This endpoint requires
application/x-www-form-urlencoded, notapplication/json
Related Documentation
- Authentication Guide - Detailed authentication information
- Error Handling - Error response formats

