Guides
How the Vidima IQ API behaves, with the details you need to build a reliable integration. Every endpoint is in the API reference, generated from the same definitions the app uses.
Authentication and scopes
Send an API key as a bearer token on every request. A key belongs to one tenant: an accrediting agency or an account (the provider being assessed), and only sees that tenant's data.
curl https://demo.vidimaiq.com/api/v1/me -H "Authorization: Bearer atk_live_…"
| Scope | Allows |
|---|---|
read | List and fetch records |
write | Create, update and delete records |
imports | Run bulk imports |
webhooks | Manage webhook subscriptions |
admin | Tenant administration such as single sign-on providers |
Administrators create and revoke keys in the app under Integrations. Keep keys on your server; they are not meant for browsers or mobile apps. GET /me tells you which tenant and scopes a key has.
Environments
The demo environment at https://demo.vidimaiq.com/api/v1 holds example data and accepts the public demo keys atk_demo_north_audit_agency_key_0001 (agency) and atk_demo_wattle_grove_account_key_01 (account). It is shared and resets from time to time, so never send real personal information to it. Production and sandbox tenants are issued during onboarding.
Conventions
- JSON request and response bodies with camelCase fields. Dates are
YYYY-MM-DD; timestamps are ISO 8601 in UTC. - Lists return
{ data, pagination: { nextCursor, total } }. Passcursorto get the next page andlimit(up to 200) to size it. - Errors are RFC 9457 problem details with
application/problem+json:401bad key,403missing scope,404not in your tenant,422validation with anerrorsarray. - We say account for the organisation being assessed and agency for the accrediting body.
Idempotent writes
Every write can be retried safely. Two mechanisms, use whichever fits:
- Your own ids. Include
source(your system) andexternalId(your record id). If the pair is already known for your tenant, the existing record is updated instead of duplicated. This is how a CRM stays the source of truth. - An
Idempotency-Keyheader for records without an external id. Repeating the request returns the original result withupserted: "replayed".
curl -X POST https://demo.vidimaiq.com/api/v1/accounts \
-H "Authorization: Bearer atk_demo_north_audit_agency_key_0001" \
-H "Content-Type: application/json" \
-d '{"name":"Wattle Grove Aged Care","abn":"12 345 678 901","sector":"aged-care",
"source":"dynamics365","externalId":"ACC-00042"}'Versioning
Every response carries vidima-api-version. The current version is 2026-09-01. We add fields and event types without notice, so ignore fields you do not recognise. A change that could break an integration ships under a new dated version, and the previous one keeps working.
Webhooks
Subscribe an HTTPS endpoint to the events you care about, or to * for all of them. The response includes the signing secret once; store it.
curl -X POST https://demo.vidimaiq.com/api/v1/webhooks \
-H "Authorization: Bearer atk_demo_north_audit_agency_key_0001" \
-H "Content-Type: application/json" \
-d '{"url":"https://crm.example.com/hooks/vidima","events":["assessment.submitted","decision.recorded"]}'Each delivery is a POST with these headers:
| Header | Meaning |
|---|---|
Vidima-Signature | t=<unix seconds>,v1=<hex> where v1 = HMAC_SHA256(secret, t + "." + rawBody) |
VidimaIQ-Event | The event type, for example assessment.submitted |
VidimaIQ-Delivery | Unique per delivery attempt |
Idempotency-Key | The event id; the same across retries, so use it to de-duplicate |
Verify every delivery
Compute the signature over the raw request body, compare in constant time and reject timestamps more than five minutes old.
import crypto from 'node:crypto';
// Express: use express.raw({ type: 'application/json' }) so you verify the exact bytes received.
export function verifyVidimaSignature(secret, header, rawBody) {
const parts = Object.fromEntries(header.split(',').map((p) => p.split('=')));
const expected = crypto.createHmac('sha256', secret).update(`${parts.t}.${rawBody}`).digest('hex');
const fresh = Math.abs(Date.now() / 1000 - Number(parts.t)) < 300;
return fresh && expected.length === parts.v1.length
&& crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(parts.v1));
}import hmac, hashlib, time
def verify_vidima_signature(secret: str, header: str, raw_body: bytes) -> bool:
parts = dict(p.split("=", 1) for p in header.split(","))
signed = f"{parts['t']}.".encode() + raw_body
expected = hmac.new(secret.encode(), signed, hashlib.sha256).hexdigest()
return abs(time.time() - int(parts["t"])) < 300 and hmac.compare_digest(expected, parts["v1"])Retries
Answer with any 2xx within 10 seconds. Otherwise we retry after 1 minute, 5 minutes, 30 minutes, 2 hours and 12 hours, then mark the delivery dead. GET /webhooks/{id}/deliveries shows every attempt and POST /webhooks/{id}/test sends a test event now. Deliveries can arrive out of order; use the timestamps in the payload.
Event feed
If you cannot receive webhooks (for example behind a firewall), poll the same events:
curl "https://demo.vidimaiq.com/api/v1/events?limit=50&cursor=<nextCursor>" \ -H "Authorization: Bearer atk_demo_north_audit_agency_key_0001"
Store pagination.nextCursor and pass it on the next poll. Filter with type. GET /events?catalogue=true lists every event type; so does the event catalogue.
Imports and migration
Bring history across from a spreadsheet, Access database or CRM export. Imports run as a dry run by default: you see exactly what would be created, updated or rejected, then run again with dryRun: false.
Entity types: accounts, contacts, assessors, engagements, decisions (historical decisions) and certificates.
curl -X POST https://demo.vidimaiq.com/api/v1/imports \
-H "Authorization: Bearer atk_demo_north_audit_agency_key_0001" \
-H "Content-Type: application/json" \
-d '{"entityType":"accounts","source":"legacy-access","dryRun":true,
"mapping":{"Facility ID":"externalId","Facility Name":"name"},
"rows":[{"Facility ID":"ACC-00042","Facility Name":"Wattle Grove Aged Care"}]}'CSV works too: send the file as text/csv with entityType, source and dryRun as query parameters and the column mapping in an X-Vidima-Mapping header. Rows upsert on source plus externalId, so re-running an import is safe.
accountExternalId), then historical decisions and certificates, then subscribe a webhook so new events flow back into your CRM.Custom fields
Each agency can add its own fields to accounts, contacts, assessors, engagements, assessments and certificates: region, risk rating, funding model, anything your CRM tracks. Values travel in a custom object on the record.
# What fields does this tenant have?
curl "https://demo.vidimaiq.com/api/v1/custom-fields?entity=accounts" -H "Authorization: Bearer atk_demo_north_audit_agency_key_0001"
# Set values (PATCH merges keys; null clears one)
curl -X PATCH https://demo.vidimaiq.com/api/v1/accounts/<id> -H "Authorization: Bearer atk_demo_north_audit_agency_key_0001" -H "Content-Type: application/json" -d '{"custom":{"region":"Northern NSW","riskRating":"High","beds":null}}'- Types:
text,longtext,number,currency,date(YYYY-MM-DD),boolean,selectandmultiselect(values fromoptions),email,url,phone. - Unknown keys and wrongly typed values are rejected with
422and a message per field. Required fields are enforced when a record is created. - A field's
keyandtypenever change once created; archive a field with{"active": false}and add a new one. - Filter lists with
cf.<key>=value, for example/accounts?cf.region=Northern%20NSW. Imports map a column tocustom.<key>and convert the value to the field's type (Australian dates, Yes/No, numbers with commas).
Reports and exports
Every report on the agency's reports page is available at /reports/{name} with the same filters, as JSON, CSV or Excel.
curl "https://demo.vidimaiq.com/api/v1/reports/certificates?range=last_quarter&dateField=validTo&status=current,expiring&cf.region=Northern%20NSW&format=xlsx" -H "Authorization: Bearer atk_demo_north_audit_agency_key_0001" -o certificates.xlsx
range:last_30_days,this_month,last_quarter,this_fy(Australian financial year),next_90_daysand more, orfromandtodates.dateFieldpicks which date the range applies to.statustakes one or several values, comma separated. Custom fields marked for reports appear as columns (custom.key, andaccount.keyon certificate and assessment reports).- Excel files include a Summary sheet and an About sheet recording the filters that produced them.
- Scheduled reports are created in the app by a named person and delivered only to named members of the agency; API keys cannot create schedules. The
report.deliveredevent tells you when a run has gone out.
Evidence uploads
File bytes never pass through the API. Uploads are two steps: ask for a signed upload URL, PUT the file to it, then mark the upload complete.
# 1. Start: returns evidence.id and upload.url (+ headers to send)
POST /evidence/upload-url {"title":"Infection control policy","fileName":"ipc-policy.pdf","mime":"application/pdf","sizeBytes":482113}
# 2. Upload the bytes straight to storage
PUT <upload.url>
# 3. Complete: checksum and de-duplication happen here
POST /evidence/{id}/completeGET /evidence/{id}/download returns a signed link that expires after 60 seconds. Link one document to requirements in several standards with POST /evidence/{id}/links.
Single sign-on
Agencies and accounts can bring their own identity provider. Administrators configure SAML 2.0 or OpenID Connect in the app (Microsoft Entra ID, Okta, Google, Auth0 or any standards-based provider) or through /sso-providers with the admin scope.
- People are routed by email domain:
GET /api/auth/sso/discover?email=, thenGET /api/auth/sso/start?provider=. - OpenID Connect uses the authorisation code flow with PKCE and verifies the ID token against the provider's keys, issuer, audience and nonce.
- SAML assertions must be signed. Service provider metadata is at
/api/auth/sso/saml/{tenantSlug}/metadata. - Groups map to roles, and unknown people can be provisioned just in time. Enforcing SSO for a domain requires proving you own it.