Skip to content
On this page

Authentication


The AnimeThemes API uses token-based authentication to grant the user access to protected actions.

Token Authentication

The AnimeThemes API uses the Bearer authentication scheme to validate requests for protected actions.

The Bearer token in the Authorization request header must correspond to a valid API token.

sh
curl -X POST "https://api.animethemes.moe/{protected action}"
    -H "Accept: application/json"
    -H "Authorization: Bearer {token}"

Status Codes

The AnimeThemes API uses framework-default response status codes for authenticated requests.

CodeDescriptionExamples
200OK - request succeededDELETE, PATCH, PUT
201Created - new resource was createdPOST
401Unauthorized - invalid or no authentication providedAll
403Forbidden - request is not authorized for userAll
404Not Found - no resource was foundAll

Released under the MIT License.