Skip to main content

Authentication

API endpoints are protected, and therefore require that you authenticate using an access token.

Generate a token

  • Navigate to your Mixpost dashboard.
  • Click on Access Tokens from user menu.
  • Click on Create.
  • Give it a name, then click on Create.
  • Copy your token.
Screenshots:
Access Tokens - 1Access Tokens - 2Access Tokens - 3Access Tokens - 4

User your token

You can authenticate by adding an Authorization header to all your HTTP calls. The Authorization header is formatted as such: Authorization: Bearer <token> (replace <token> with your token previously generated).

The url for API endpoints within Mixpost is as follows:

https://example.com/<MIXPOST_CORE_PATH>/api/*
info

Substitute <MIXPOST_CORE_PATH> with your specified MIXPOST_CORE_PATH. If you have not altered the MIXPOST_CORE_PATH environment variable, use the default value: mixpost.

Example:

curl -L -X GET 'https://example.com/mixpost/api/3bbd0951-5b04-432b-b2a0-688588b0720e/accounts' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer myCoolToken'