Access and Authentication
API Endpoint
https://api-b.fotor.com
Authentication
Authorization
header of every request.Authorization: Bearer <your_api_key>
<your_api_key>
is the API key you obtained from the Fotor Developer Platform.How to Obtain an API Key
1.
2.
3.
4.
Request Headers
Authorization
header, you must specify the Content-Type
header as application/json
, indicating that the request body is in JSON format.Content-Type: application/json
Example Request (Using cURL)
Authorization
and Content-Type
headers:
<your_api_key>
with your actual API key.Error Handling
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.code
and msg
fields to provide more detailed error information:Summary
1.
2.
Authorization
header.3.
Content-Type
header to application/json
.