IXO interfaces do not share one way to authenticate. A header that one interface accepts is not valid on another unless the authentication matrix says so. Use this page when you are about to call an IXO interface and need to know what to send with the request.
After reading it you will know which kind of interface you are calling, where its credential format is written down, and how to check that your request is accepted.
This page helps you choose. It has no code to run, and it does not define headers, endpoint literals or environment values. Those are in the Authentication matrix and Networks and endpoints.
Before you start
- Identify which interface you are integrating with: a protocol gateway or a service API.
- Confirm the active endpoint and network in Networks and endpoints.
- Confirm the required credential format in the Authentication matrix.
Steps
1. Classify the interface
| Kind | Interfaces |
|---|---|
| Protocol gateway | Blockchain RPC API, Blockchain REST API |
| Service API | IXO Blocksync GraphQL API, Matrix state bot API, Registry API |
2. Apply the required format
The formats used across IXO interfaces are listed in the Authentication matrix. Find the row for your interface and send what it says.
Do not reuse one format across all APIs unless the authentication matrix explicitly confirms it.
3. Send a test request
Send a minimal authenticated read request to the interface.
Check the result
- You get an HTTP success response from your target endpoint.
- You get no authentication or permission error.
When something goes wrong
| What you see | What it means |
|---|---|
401 Unauthorized | Your credential format or token source does not match the interface. Check its row in the Authentication matrix again. |
403 Forbidden | Your identity is valid, but it lacks the scope or role the resource requires. |
429 Too Many Requests | You went over the rate policy of the interface. Retry with backoff, as the guidance for that API says. |
If you need a different kind of authority
Calling an API is one kind of access. These guides cover related tasks.
| You want to | Go to |
|---|---|
| Log a user in and sign transactions from a browser app with their mobile wallet | Session signing with SignX |
| Let one account act for another on chain, or pay its fees | Manage authz grants and fee allowances |
| Put rules on how an account's transactions are authenticated | Manage smart accounts |
| Call the Credentials worker as an issuer, a verifier or a holder | Credentials API reference |