Authentication Guide
1. API Key in Query Parameters
curl -X GET "https://api.mockapi.com/your/endpoint?api_key=YOUR-API-KEY"2. API Key in Headers
curl -X GET https://api.mockapi.com/your/endpoint -H "x-api-key: YOUR-API-KEY"3. Bearer Token in Authorization Header
curl -X GET https://api.mockapi.com/your/endpoint -H "Authorization: Bearer YOUR-API-KEY"4. API Key in Request Body
Choosing the Right Authentication Method
Additional Security Tips
Troubleshooting
Last updated