In addition to the Authorization header, you must specify the Content-Type header as application/json, indicating that the request body is in JSON format.
If your request is missing or contains an invalid Authorization token, the API will return a 401 Unauthorized error. You should verify your API key and ensure it is correctly included in the request header.Other common HTTP status codes include:
400 Bad Request: The request parameters are incomplete or incorrectly formatted.
429 Too Many Requests: Excessive request rate.
500 Internal Server Error: A server-side error occurred.
The API also returns a JSON response body with code and msg fields to provide more detailed error information:
To successfully access Fotor OpenAPI, you need to:
1.
Use the correct API endpoint.
2.
Include a valid API key in the Authorization header.
3.
Set the Content-Type header to application/json.
By following these steps, you can securely and effectively utilize the features of Fotor OpenAPI.If you encounter any issues during access or authentication, please contact our technical support team promptly.