User-Agent Header
User-Agent Header Requirement
All API requests must include a User-Agent header that identifies your application. This helps us provide better support and track API usage patterns.
Note: Requests without a User-Agent header will be rejected.
Format
The User-Agent header should follow this format:
User-Agent: ApplicationName/VersionExamples
# Basic format
User-Agent: MyDomainApp/1.0
# With platform information
User-Agent: DomainManager/2.1 (Linux x64)Best Practices
- Be Descriptive: Use a meaningful application name
- Include Version: Always include your application version
- Keep it Consistent: Use the same User-Agent format across all requests
Example Request with User-Agent
Endpoint: Get domains
curl -X GET 'https://api.afternic.com/v3/aftermarket/customers/my/domains' \
-H 'Authorization: sso-key YOUR_API_KEY:YOUR_API_SECRET' \
-H 'User-Agent: MyPortfolioApp/1.0 (Linux)' \
-H 'X-Request-Id: 123e4567-e89b-12d3-a456-426614174000'