Get Started with the HTTP API
Use the HTTP API to integrate verification into your own application or service. The flow is three requests: exchange your credentials for a token, submit a file, then poll until the verdict is ready.
:::info Before you start You need a service principal's credentials. If you don't have them yet, create a service principal first — it takes a minute. :::
You'll also need: curl and jq to follow the examples, or any HTTP client. The examples build on each other through shell variables, so run them in order in the same terminal.
:::tip Just want to try it? The Truebees CLI does all three steps in one command. :::
Steps
Get an access token
Exchange your service principal credentials for a Bearer JWT.
Submit a file
Upload an image, video, or audio file to a detection pipeline.
Check the result
Poll the verification endpoint until the verdict is available.