API tokens
API tokens let scripts, webhooks, and other integrations use the MX public API on your behalf. This page shows how to create, use, and revoke a token.
Create a token
Section titled “Create a token”- Open Integrations from the user menu at the bottom of the sidebar.
- In Your API tokens, click Create token.
- Give the token a Name so you know what it is for (for example, “Reporting script”).
- Pick its Scopes: read to fetch data, write to make changes. Choose at least one.
- Choose when it Expires: 30 days, 90 days, 365 days (the default), or no expiry.
- Click Create token.
MX shows the full token once, right after you create it. Copy it now and store it somewhere safe. MX never stores the plaintext, so once you close the dialog you cannot see it again - only the prefix is kept in your token list.
Use it
Section titled “Use it”Send the token in the Authorization header as a Bearer token. MX tokens start with mx_.
curl -H "Authorization: Bearer mx_your_token_here" \ https://app.mxbrandcopy.com/v1/brandsSee the API reference for available endpoints and response format.
Revoke a token
Section titled “Revoke a token”If a token is no longer needed or may have leaked, revoke it. In Your API tokens, find the token and click Revoke, then confirm. The token stops working on its next request. Revoking cannot be undone - create a new token if you need one again.
You can also review a token’s activity: click Activity on a row to see the changes made with that token.