Devapi API
18 operations. Back to the API overview. Examples use synthetic data.
Api clients list
GET /admin/v1/api-clients
Needs the permissions: developers:manage, transactions:read.
Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
api_terms_version | any | optional | - |
base_url | any | optional | - |
can_manage | any | optional | - |
clients | any | optional | - |
max_clients | any | optional | - |
scopes | any | optional | - |
{
"api_terms_version": {},
"base_url": {},
"can_manage": {},
"clients": {},
"max_clients": {},
"scopes": {}
}Other responses
401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request GET \
--header "Authorization: Bearer $ID_TOKEN" \
"https://YOUR-CONSOLE-HOST/admin/v1/api-clients"Api client create
POST /admin/v1/api-clients
Needs the permissions: developers:manage, payload:read.
Request body
| Field | Type | Presence | Description |
|---|---|---|---|
accept_terms_version | string | optional | AcceptTermsVersion is the version of the API Terms of Use the administrator accepted for this client (checked by the admin API). |
auth | string | optional | - |
environment | string | optional | - |
jwks | string | optional | - |
name | string | optional | - |
public_key_pem | string | optional | - |
rate_per_minute | integer | optional | - |
routes | array of string | optional | - |
scopes | array of string | optional | - |
send_types | array of string | optional | - |
{
"accept_terms_version": "1",
"auth": "example",
"environment": "example",
"jwks": "example",
"name": "example-name",
"public_key_pem": "example",
"rate_per_minute": 1,
"routes": [
"example"
],
"scopes": [
"example"
],
"send_types": [
"example"
]
}Response 201
{}Other responses
400Bad Request401Authentication required403Not permitted404Not Found409Conflict (changed since read, or a state conflict)503Unavailable (nothing was changed)
curl --request POST \
--header "Authorization: Bearer $ID_TOKEN" \
--header "Content-Type: application/json" \
--data '{"accept_terms_version":"1","auth":"example","environment":"example","jwks":"example","name":"example-name","public_key_pem":"example","rate_per_minute":1,"routes":["example"],"scopes":["example"],"send_types":["example"]}' \
"https://YOUR-CONSOLE-HOST/admin/v1/api-clients"Api client get
GET /admin/v1/api-clients/{id}
Needs the permission: transactions:read.
Parameters
| Name | In | Type | Presence | Description |
|---|---|---|---|---|
id | path | string | required | - |
Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
auth | string | optional | - |
created_at | string (date-time) | optional | - |
created_by | string | optional | - |
endpoints | map of string | optional | - |
environment | string | optional | - |
id | string | optional | - |
key_count | integer | optional | - |
last_used_at | string (date-time) | optional | - |
link_id | string | optional | - |
name | string | optional | - |
previous_secret_valid_until | string (date-time) | optional | - |
quickstart | object (DevapiQuickstart) | optional | Quickstart holds copy-paste samples for one client. |
quickstart.curl | string | optional | - |
quickstart.node | string | optional | - |
quickstart.python | string | optional | - |
rate_per_minute | integer | optional | - |
revoked_at | string (date-time) | optional | - |
routes | array of string | optional | - |
scopes | array of string | optional | - |
send_types | array of string | optional | - |
status | string | optional | - |
usage_30d | object (DbAPIClientUsage) | optional | APIClientUsage is a client's activity over the last 30 days (counts). |
usage_30d.Errors | integer | optional | - |
usage_30d.Events | integer | optional | - |
usage_30d.Requests | integer | optional | - |
usage_30d.WebhookFailures | integer | optional | - |
{
"auth": "example",
"created_at": "2026-01-15T14:30:00Z",
"created_by": "example",
"endpoints": {
"example": "example"
},
"environment": "example",
"id": "example-id",
"key_count": 1,
"last_used_at": "2026-01-15T14:30:00Z",
"link_id": "example-id",
"name": "example-name",
"previous_secret_valid_until": "2026-01-15T14:30:00Z",
"quickstart": {
"curl": "https://example.org/resource",
"node": "example",
"python": "example"
},
"rate_per_minute": 1,
"revoked_at": "2026-01-15T14:30:00Z",
"routes": [
"example"
],
"scopes": [
"example"
],
"send_types": [
"example"
],
"status": "ok",
"usage_30d": {
"Errors": 1,
"Events": 1,
"Requests": 1,
"WebhookFailures": 1
}
}Other responses
401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request GET \
--header "Authorization: Bearer $ID_TOKEN" \
"https://YOUR-CONSOLE-HOST/admin/v1/api-clients/example-id"Api client keys
POST /admin/v1/api-clients/{id}/keys
Needs the permission: developers:manage.
Parameters
| Name | In | Type | Presence | Description |
|---|---|---|---|---|
id | path | string | required | - |
Request body
| Field | Type | Presence | Description |
|---|---|---|---|
jwks | string | optional | - |
public_key_pem | string | optional | - |
{
"jwks": "example",
"public_key_pem": "example"
}Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
status | string | optional | - |
{
"status": "ok"
}Other responses
400Bad Request401Authentication required403Not permitted404Not Found409Conflict (changed since read, or a state conflict)503Unavailable (nothing was changed)
curl --request POST \
--header "Authorization: Bearer $ID_TOKEN" \
--header "Content-Type: application/json" \
--data '{"jwks":"example","public_key_pem":"example"}' \
"https://YOUR-CONSOLE-HOST/admin/v1/api-clients/example-id/keys"Api client revoke
POST /admin/v1/api-clients/{id}/revoke
Needs the permission: developers:manage.
Parameters
| Name | In | Type | Presence | Description |
|---|---|---|---|---|
id | path | string | required | - |
Request body
{}Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
status | string | optional | - |
{
"status": "ok"
}Other responses
401Authentication required403Not permitted404Not Found409Conflict (changed since read, or a state conflict)503Unavailable (nothing was changed)
curl --request POST \
--header "Authorization: Bearer $ID_TOKEN" \
--header "Content-Type: application/json" \
--data '{}' \
"https://YOUR-CONSOLE-HOST/admin/v1/api-clients/example-id/revoke"Api client rotate
POST /admin/v1/api-clients/{id}/rotate-secret
Needs the permission: developers:manage.
Parameters
| Name | In | Type | Presence | Description |
|---|---|---|---|---|
id | path | string | required | - |
Request body
| Field | Type | Presence | Description |
|---|---|---|---|
overlap_hours | integer | optional | - |
{
"overlap_hours": 1
}Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
client_secret | any | optional | - |
client_secret_notice | string | optional | - |
previous_secret_valid_until | any | optional | - |
{
"client_secret": {},
"client_secret_notice": "example",
"previous_secret_valid_until": {}
}Other responses
400Bad Request401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request POST \
--header "Authorization: Bearer $ID_TOKEN" \
--header "Content-Type: application/json" \
--data '{"overlap_hours":1}' \
"https://YOUR-CONSOLE-HOST/admin/v1/api-clients/example-id/rotate-secret"Api client scope
POST /admin/v1/api-clients/{id}/scope
Needs the permissions: developers:manage, payload:read.
Parameters
| Name | In | Type | Presence | Description |
|---|---|---|---|---|
id | path | string | required | - |
Request body
| Field | Type | Presence | Description |
|---|---|---|---|
rate_per_minute | integer | optional | - |
routes | array of string | optional | - |
scopes | array of string | optional | - |
send_types | array of string | optional | - |
{
"rate_per_minute": 1,
"routes": [
"example"
],
"scopes": [
"example"
],
"send_types": [
"example"
]
}Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
status | string | optional | - |
tokens_ended | any | optional | - |
{
"status": "ok",
"tokens_ended": {}
}Other responses
400Bad Request401Authentication required403Not permitted404Not Found409Conflict (changed since read, or a state conflict)503Unavailable (nothing was changed)
curl --request POST \
--header "Authorization: Bearer $ID_TOKEN" \
--header "Content-Type: application/json" \
--data '{"rate_per_minute":1,"routes":["example"],"scopes":["example"],"send_types":["example"]}' \
"https://YOUR-CONSOLE-HOST/admin/v1/api-clients/example-id/scope"Api webhook disable
POST /admin/v1/api-clients/{id}/webhooks/{wid}/disable
Needs the permission: developers:manage.
Parameters
| Name | In | Type | Presence | Description |
|---|---|---|---|---|
id | path | string | required | - |
wid | path | string | required | - |
Request body
{}Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
status | string | optional | - |
{
"status": "ok"
}Other responses
401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request POST \
--header "Authorization: Bearer $ID_TOKEN" \
--header "Content-Type: application/json" \
--data '{}' \
"https://YOUR-CONSOLE-HOST/admin/v1/api-clients/example-id/webhooks/example-wid/disable"Vendor links list
GET /admin/v1/vendor-links
Needs the permissions: developers:manage, transactions:read.
Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
can_manage | any | optional | - |
hub | any | optional | - |
links | any | optional | - |
terms_version | any | optional | - |
{
"can_manage": {},
"hub": {},
"links": {},
"terms_version": {}
}Other responses
401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request GET \
--header "Authorization: Bearer $ID_TOKEN" \
"https://YOUR-CONSOLE-HOST/admin/v1/vendor-links"Vendor query systems
GET /admin/v1/vendor-links/query-systems
Needs the permission: transactions:read.
Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
policies | any | optional | - |
served_types | any | optional | - |
systems | array of object (QuerySystemView) | optional | - |
systems.[]id | string | optional | - |
systems.[]method | string | optional | - |
systems.[]name | string | optional | - |
systems.[]profile | string | optional | - |
systems.[]ready | boolean | optional | - |
systems.[]resources | array of string | optional | - |
systems.[]summary | string | optional | - |
{
"policies": {},
"served_types": {},
"systems": [
{
"id": "example-id",
"method": "example",
"name": "example-name",
"profile": "example",
"ready": true,
"resources": [
"example"
],
"summary": "example"
}
]
}Other responses
401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request GET \
--header "Authorization: Bearer $ID_TOKEN" \
"https://YOUR-CONSOLE-HOST/admin/v1/vendor-links/query-systems"Vendor requests list
GET /admin/v1/vendor-links/requests
Needs the permission: developers:manage.
Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
requests | any | optional | - |
terms_version | any | optional | - |
{
"requests": {},
"terms_version": {}
}Other responses
401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request GET \
--header "Authorization: Bearer $ID_TOKEN" \
"https://YOUR-CONSOLE-HOST/admin/v1/vendor-links/requests"Accepts a vendor's request with the scope the provider chooses (never wider than requested), after the BAA attestation and the Vendor Hub Terms
POST /admin/v1/vendor-links/requests/{id}/accept
Accepts a vendor's request with the scope the provider chooses (never wider than requested), after the BAA attestation and the Vendor Hub Terms; it creates the link and its API client (the vendor's registered public keys, production, bound to the link) in one audited transaction.
Needs the permission: developers:manage.
Parameters
| Name | In | Type | Presence | Description |
|---|---|---|---|---|
id | path | string | required | - |
Request body
| Field | Type | Presence | Description |
|---|---|---|---|
baa_attested | boolean | optional | - |
data_scopes | array of string | optional | Partner FHIR access: the scopes granted (nil: read and search on every type the vendor asked for), the query system and the patient policy (default identifier_or_demographics). |
patient_policy | string | optional | - |
purpose | string | optional | - |
query_system | string | optional | - |
receive_routes | array of string | optional | - |
send_types | array of string | optional | - |
terms_version | string | optional | - |
{
"baa_attested": true,
"data_scopes": [
"example"
],
"patient_policy": "example",
"purpose": "example",
"query_system": "example",
"receive_routes": [
"example"
],
"send_types": [
"example"
],
"terms_version": "1"
}Response 201
| Field | Type | Presence | Description |
|---|---|---|---|
client_id | any | optional | - |
endpoints | map of string | optional | - |
link | object (DbVendorLink) | optional | VendorLink is one accepted vendor hub link. |
link.BAAAttested | boolean | optional | - |
link.BulkAllPatients | boolean | optional | - |
link.BulkAllPatientsAt | string (date-time) | optional | - |
link.BulkAllPatientsBy | string | optional | - |
link.BulkEpoch | integer | optional | - |
link.BulkFreshnessHours | integer | optional | - |
link.BulkTypes | array of string | optional | Bulk export (migration 0097): the types the provider lets the link export, the all-patients grant (who enabled it, when), the freshness period of held exports in hours and the epoch. |
link.CreatedAt | string (date-time) | optional | - |
link.DataScopes | array of string | optional | Partner FHIR access (migration 0096): the scopes the provider granted (never wider than RequestedDataScopes, what the vendor asked for), the partner query system the facade answers from and the patient policy. |
link.DecidedBy | string | optional | - |
link.ID | string | optional | - |
link.PatientPolicy | string | optional | - |
link.Purpose | string | optional | - |
link.QuerySystem | string | optional | - |
link.ReceiveRoutes | array of string | optional | - |
link.RequestedDataScopes | array of string | optional | Partner FHIR access (migration 0096): the scopes the provider granted (never wider than RequestedDataScopes, what the vendor asked for), the partner query system the facade answers from and the patient policy. |
link.SendTypes | array of string | optional | - |
link.Status | string | optional | - |
link.StatusReason | string | optional | - |
link.TermsVersion | string | optional | - |
link.UpdatedAt | string (date-time) | optional | - |
link.VendorAccount | string | optional | - |
link.VendorName | string | optional | - |
link.VendorSuspended | boolean | optional | - |
link.Version | integer | optional | - |
{
"client_id": {},
"endpoints": {
"example": "example"
},
"link": {
"BAAAttested": true,
"BulkAllPatients": true,
"BulkAllPatientsAt": "2026-01-15T14:30:00Z",
"BulkAllPatientsBy": "example",
"BulkEpoch": 1,
"BulkFreshnessHours": 1,
"BulkTypes": [
"example"
],
"CreatedAt": "2026-01-15T14:30:00Z",
"DataScopes": [
"example"
],
"DecidedBy": "example",
"ID": "example-id",
"PatientPolicy": "example",
"Purpose": "example",
"QuerySystem": "example",
"ReceiveRoutes": [
"example"
],
"RequestedDataScopes": [
"example"
],
"SendTypes": [
"example"
],
"Status": "ok",
"StatusReason": "ok",
"TermsVersion": "1",
"UpdatedAt": "2026-01-15T14:30:00Z",
"VendorAccount": "example",
"VendorName": "example-name",
"VendorSuspended": true,
"Version": 1
}
}Other responses
400Bad Request401Authentication required403Not permitted404Not Found409Conflict (changed since read, or a state conflict)503Unavailable (nothing was changed)
curl --request POST \
--header "Authorization: Bearer $ID_TOKEN" \
--header "Content-Type: application/json" \
--data '{"baa_attested":true,"data_scopes":["example"],"patient_policy":"example","purpose":"example","query_system":"example","receive_routes":["example"],"send_types":["example"],"terms_version":"1"}' \
"https://YOUR-CONSOLE-HOST/admin/v1/vendor-links/requests/example-id/accept"Vendor request decline
POST /admin/v1/vendor-links/requests/{id}/decline
Needs the permission: developers:manage.
Parameters
| Name | In | Type | Presence | Description |
|---|---|---|---|---|
id | path | string | required | - |
Request body
{}Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
status | string | optional | - |
{
"status": "ok"
}Other responses
401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request POST \
--header "Authorization: Bearer $ID_TOKEN" \
--header "Content-Type: application/json" \
--data '{}' \
"https://YOUR-CONSOLE-HOST/admin/v1/vendor-links/requests/example-id/decline"Vendor link activity
GET /admin/v1/vendor-links/{id}/activity
Needs the permission: transactions:read.
Parameters
| Name | In | Type | Presence | Description |
|---|---|---|---|---|
id | path | string | required | - |
Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
by_day | any | optional | - |
note | string | optional | - |
recent | any | optional | - |
requests | integer | optional | - |
resources_returned | integer | optional | - |
since | any | optional | - |
{
"by_day": {},
"note": "example",
"recent": {},
"requests": 1,
"resources_returned": 1,
"since": {}
}Other responses
401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request GET \
--header "Authorization: Bearer $ID_TOKEN" \
"https://YOUR-CONSOLE-HOST/admin/v1/vendor-links/example-id/activity"Approves the vendor's current keys for a link that requires approval
POST /admin/v1/vendor-links/{id}/approve-keys
Approves the vendor's current keys for a link that requires approval; the broker applies them at its next sync (within 5 minutes).
Needs the permission: developers:manage.
Parameters
| Name | In | Type | Presence | Description |
|---|---|---|---|---|
id | path | string | required | - |
Request body
{}Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
applies_within | string | optional | - |
approved | any | optional | - |
link | any | optional | - |
{
"applies_within": "example",
"approved": {},
"link": {}
}Other responses
400Bad Request401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request POST \
--header "Authorization: Bearer $ID_TOKEN" \
--header "Content-Type: application/json" \
--data '{}' \
"https://YOUR-CONSOLE-HOST/admin/v1/vendor-links/example-id/approve-keys"Vendor link data access
POST /admin/v1/vendor-links/{id}/data-access
Needs the permission: developers:manage.
Parameters
| Name | In | Type | Presence | Description |
|---|---|---|---|---|
id | path | string | required | - |
Request body
| Field | Type | Presence | Description |
|---|---|---|---|
data_scopes | array of string | optional | - |
patient_policy | string | optional | - |
query_system | string | optional | - |
version | integer | optional | - |
{
"data_scopes": [
"example"
],
"patient_policy": "example",
"query_system": "example",
"version": 1
}Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
applies | string | optional | - |
link | any | optional | - |
{
"applies": "example",
"link": {}
}Other responses
400Bad Request401Authentication required403Not permitted404Not Found409Conflict (changed since read, or a state conflict)503Unavailable (nothing was changed)
curl --request POST \
--header "Authorization: Bearer $ID_TOKEN" \
--header "Content-Type: application/json" \
--data '{"data_scopes":["example"],"patient_policy":"example","query_system":"example","version":1}' \
"https://YOUR-CONSOLE-HOST/admin/v1/vendor-links/example-id/data-access"Sets whether the link requires this provider's approval when the vendor's keys change...
POST /admin/v1/vendor-links/{id}/key-policy
Sets whether the link requires this provider's approval when the vendor's keys change (default: the provider is told of every change and the new keys apply at once). Audited before the control plane is asked; nothing changes when the audit cannot be written.
Needs the permission: developers:manage.
Parameters
| Name | In | Type | Presence | Description |
|---|---|---|---|---|
id | path | string | required | - |
Request body
| Field | Type | Presence | Description |
|---|---|---|---|
require_approval | boolean | optional | - |
{
"require_approval": true
}Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
link | any | optional | - |
require_key_approval | any | optional | - |
{
"link": {},
"require_key_approval": {}
}Other responses
400Bad Request401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request POST \
--header "Authorization: Bearer $ID_TOKEN" \
--header "Content-Type: application/json" \
--data '{"require_approval":true}' \
"https://YOUR-CONSOLE-HOST/admin/v1/vendor-links/example-id/key-policy"Vendor link status
POST /admin/v1/vendor-links/{id}/status
Needs the permission: developers:manage.
Parameters
| Name | In | Type | Presence | Description |
|---|---|---|---|---|
id | path | string | required | - |
Request body
| Field | Type | Presence | Description |
|---|---|---|---|
reason | string | optional | - |
status | string | optional | - |
version | integer | optional | - |
{
"reason": "Example text",
"status": "ok",
"version": 1
}Response 200
{}Other responses
400Bad Request401Authentication required403Not permitted404Not Found409Conflict (changed since read, or a state conflict)503Unavailable (nothing was changed)
curl --request POST \
--header "Authorization: Bearer $ID_TOKEN" \
--header "Content-Type: application/json" \
--data '{"reason":"Example text","status":"ok","version":1}' \
"https://YOUR-CONSOLE-HOST/admin/v1/vendor-links/example-id/status"Something unclear or missing? Ask Help in the Velacent Bridge console; answers link to the right screen. How support works.