API reference#
The base address is https://rokh.id. Send the Authorization: Bearer <key> header with each request, unless the table tells you a different authentication.
The OpenAPI 3.1 file of the API is at /docs/openapi.yaml. Load it in a tool that reads OpenAPI to make a client or to test calls.
Requests#
| Method | Endpoint | Effect | Page |
|---|---|---|---|
POST |
/api/vendor/requests |
Make a request and a customer link | Requests |
GET |
/api/vendor/requests |
Your requests, newest first. Filters: limit, offset, customer_label, status. |
Requests |
GET |
/api/vendor/requests/{id} |
The full record of a request | Requests |
POST |
/api/vendor/requests/{id}/revoke |
Stop the customer link | Requests |
POST |
/api/vendor/panel/requests/{id}/reissue |
A new request with the same settings | Requests |
GET |
/api/vendor/panel/requests/{id}/version |
A small change token for polling | Requests |
GET |
/api/vendor/panel/requests/{id}/qr.svg |
A QR code of the customer link | Requests |
GET |
/api/vendor/panel/requests |
The list of the vendor panel | Requests |
GET |
/api/vendor/panel/requests.csv |
The same list as CSV | Requests |
GET |
/api/vendor/panel/requests/{id} |
The panel view of a request | Requests |
Results and evidence#
| Method | Endpoint | Effect | Page |
|---|---|---|---|
GET |
/api/vendor/requests/{id}/report.json |
The report | Results |
GET |
/api/vendor/requests/{id}/media |
The list of recordings | Results |
GET |
/api/vendor/requests/{id}/media/{media_id} |
A recording. ?download=1 downloads it. |
Results |
GET |
/api/vendor/requests/{id}/media/{media_id}/poster.jpg |
One frame of a recording | Results |
GET |
/api/vendor/requests/{id}/media/{media_id}/compact.mp4 |
The compact copy of an archived recording, to play it | Results |
GET |
/api/vendor/requests/{id}/vendor-input |
The flag for incorrect values, with each choice of a person | Results |
PUT |
/api/vendor/requests/{id}/vendor-input |
Set or remove the flag for incorrect values. Body: flagged, note (optional). |
Results |
GET |
/api/vendor/requests/{id}/media/stills/{still_id} |
A photo. ?normalized=1, ?download=1. |
Results |
GET |
/api/vendor/requests/{id}/captures/{kind}/image |
The current photo of front, back or selfie |
Results |
GET |
/api/vendor/panel/requests/{id}/evidence.zip |
All evidence with SHA-256 hashes | Results |
GET |
/api/vendor/panel/requests/{id}/access-log |
Who viewed or downloaded the evidence | Results |
POST |
/api/vendor/requests/{id}/reanalyze |
Do the checks again on the same evidence | Results |
POST |
/api/vendor/requests/{id}/field-review |
Record your reading of the printed fields | Requests |
Your review#
| Method | Endpoint | Effect |
|---|---|---|
GET |
/api/vendor/panel/requests/{id}/review |
Your notes, tags and outcome |
POST |
/api/vendor/panel/requests/{id}/review |
Add a note, a tag or an outcome |
DELETE |
/api/vendor/panel/requests/{id}/review/{review_id} |
Remove one item |
Webhooks#
| Method | Endpoint | Effect | Page |
|---|---|---|---|
GET |
/api/vendor/panel/webhook |
Settings and the last 50 deliveries | Webhooks |
PUT |
/api/vendor/panel/webhook |
Save the settings | Webhooks |
DELETE |
/api/vendor/panel/webhook |
Remove the webhook | Webhooks |
POST |
/api/vendor/panel/webhook/test |
Send a ping |
Webhooks |
Keys and your site#
| Method | Endpoint | Authentication | Effect | Page |
|---|---|---|---|---|
GET |
/api/vendor/panel/api-keys |
Key or panel | Your API keys, without secrets | Authentication |
POST |
/api/vendor/panel/api-keys |
Panel only | Make a key | Authentication |
DELETE |
/api/vendor/panel/api-keys/{key_id} |
Panel only | Revoke a key | Authentication |
GET |
/api/vendor/panel/embed |
Key or panel | Your allowed origins and the SDK address | Your own site |
PUT |
/api/vendor/panel/embed |
Key or panel | Save your allowed origins | Your own site |
GET |
/api/vendor/panel/domain |
Key or panel | Your hostname, its status and the DNS records | Your domain |
PUT |
/api/vendor/panel/domain |
Key or panel | Add your hostname, or change use_for_links |
Your domain |
POST |
/api/vendor/panel/domain/check |
Key or panel | Examine the DNS records now | Your domain |
DELETE |
/api/vendor/panel/domain |
Key or panel | Remove your hostname | Your domain |
Account#
| Method | Endpoint | Authentication | Effect | Page |
|---|---|---|---|---|
POST |
/api/vendor/login |
none | Sign in to the panel | Authentication |
POST |
/api/vendor/logout |
Panel | Sign out | Authentication |
GET |
/api/vendor/session |
Key or panel | The signed-in account | Account |
GET |
/api/vendor/panel/me |
Key or panel | Account, counts and webhook state | Account |
PATCH |
/api/vendor/profile |
Key or panel | Name, logo and colours | Account |
GET |
/api/vendor/panel/palette-preview |
Key or panel | The shades of your colours | Account |
POST |
/api/vendor/panel/password |
Panel only | Change the password | Account |
Customer pages and the SDK#
These addresses are for the customer and for your web pages. They do not need a key.
| Address | Contents |
|---|---|
/r/{token} |
The customer page. It is the customer_url of a request. On your domain, the same path opens on your hostname. |
/static/sdk/rokh-kyc.js |
The SDK for your own site |
/api/r/{token}/… |
The endpoints of the customer page. Your server does not use them. |
Other addresses#
| Address | Contents |
|---|---|
/health |
200 when the service runs |
/ready |
200 when the service can receive new recordings |
/api/admin/… |
The operations desk of the Rokh team. Addresses such as view_url in a response can start with /api/admin/requests/. They work with your key and give only your requests. |