Skip to main content
Every request to the Matter API must include a valid API token. Tokens are scoped to your account and give full read/write access to your library.

Getting your token

  1. Open Matter settings
  2. Click Generate API Token
  3. Copy the token
Your token looks like this:
The mat_ prefix identifies it as a Matter API token. If you ever see one in logs or code, you know what it is.

Using your token

Pass the token in the Authorization header on every request:
Never share your token or commit it to source control. Treat it like a password. Use environment variables or a secrets manager.

Token lifecycle

You can have one active token at a time. Generating a new token automatically revokes the previous one.

Security best practices

If you suspect a token has been exposed, regenerate it immediately in your settings.

Error responses

If authentication fails, the API returns 401 Unauthorized:
If your account doesn’t have an active Pro subscription: