OpenOrigins API
Environments
dev
https://dev-api.openorigins.com
prod
https://api.openorigins.com
All examples below use prod.
Authentication
Generate an API key in Dashboard → Settings → API Keys (to be made) (or contact OpenOrigins support if the dashboard access isn’t enabled yet).
Headers
x-api-key: <API-KEY-VALUE>
Endpoints
GET /v1/users
List users of your organization
Authorization: API Key
Query params
limit
10
Items per page
page
1
Page number
Paginated endpoints echo page and limit in the response for convenience.
Response
"page": and "limit": duplicate query param
Example
GET /v1/media
List media items of your organization
Authorization: API Key
Query params:
limit
10
Items per page
page
1
Page number
"page": and "limit": duplicate query param
Example
GET /v1/media/{mediaId}
Get a single media item by its ID
Authorization: API Key
Route params: {mediaId} - media Id
Example
status
1
Created
status
2
Accepted for anchoring
status
3
Anchored
status
4
Failed to anchor
POST /v1/media/anchor
Anchor media details
Authorization: API Key
Form Data:
id - media ID (optional)
name - media name (optional)
hash - media SHA3-512 hash
size - media size in bytes
metadata - any string of metadata (serialized json / xml, etc)
Response repeats the one sent by you or returns a new one if none were provided in the request.
GET /v1/public/media/{mediaHash}
Public lookup (no key). Get media details from its hash
Authorization: None
Route params:
mediaHash - media SHA3-512 hash
Example
Returns the same object schema as Retrieve one media item or 404 if unknown
Error model
All error responses are JSON:
400
INVALID_HASH
Hash not 128-char hex
401
UNAUTHENTICATED
Missing / bad key
403
RATE_LIMIT
Too many requests
404
NOT_FOUND
Unknown ID or hash
409
DUPLICATE
Hash already anchored
500
SERVER_ERROR
Unexpected exception
Last updated