šŸš§

If you haven't yet received your X-Api-Key token as part of your onboarding process then please contact support to resolve.

All API endpoints expect an X-Api-Key to be passed on each request as a header and you will receieve a separete API key for the production and playground environments.

How these keys are stored is left in your hands but consider keeping these secrets outside of your codebase, possibly in an environment variable or a dedicated secrets module such as Vault.

Note that all requests must be sent over HTTPS.

curl -X POST 'https://playground.ticket-engine.blockchain.get-protocol.io/api/v1/events' \
-H 'X-Api-Key: <string, required>' \
-H 'Content-Type: application/json'
fetch("https://playground.ticket-engine.blockchain.get-protocol.io/api/v1/events", {
  headers: {
    "Content-Type": "application/json",
    "X-Api-Key": "<string, required>"
  },
  method: "POST"
})
import requests

headers = {
  'X-Api-Key': '<string, required>',
  'Content-Type': 'application/json',
}

response = requests.post('https://playground.ticket-engine.blockchain.get-protocol.io/api/v1/events', headers=headers)

Authentication failures will be returned with a 403 Forbidden status code and body:

{
    "message": "Forbidden"
}

Key Rotation

Should you require a new key to be issued then please get in touch with your support contact who will assist you immediately. Key rotation through a self-service process is currently being worked on and updates will be sent as soon as this is ready.