This guide takes you from a configured client to your first 200 response. The target is the user get endpoint (common-user-get). It takes no parameters, changes nothing, and answers with the user your token belongs to, so a successful call proves your credentials and shows exactly who Doctavian thinks you are.
GET https://api.doctavian.com/v1/common/user/getMake sure you've worked through the Get Started page before continuing.
Doctavian authenticates each call with HTTP headers. For your first call, and for most calls you will ever make, you need two:
x-api-key: your Doctavian API key, from Self-service → Developers in the Doctavian Portal. Required on every operation.Authorization: Bearer <token>, a standard OAuth 2.0 access token that identifies who you are.A few operations take a third header,
X-Client-Authorization, which tells Doctavian where to call your service back: the async document operations require it, and envelope send accepts it for status callbacks. You won't need it for the missions. See the Authentication Guide when you get there.
The fastest way in is the Postman Collection: base URL, headers, and OAuth login all come preconfigured. Prefer the command line? Skip to cURL.
After downloading the Doctavian Postman collection, in Postman choose Import and select the file. A Doctavian collection appears in your sidebar.
Select the Doctavian collection, open the Authorization tab, scroll to the bottom and click Get New Access Token. A browser window opens. Sign in with your company Microsoft or Google account and click Use Token when prompted. Postman handles the entire OAuth 2.0 flow for you.
In the sidebar, open Common → User → User Get and click Send. A 200 OK response with your name and email confirms everything is working.
You're done. Jump to Reading the response to continue, or keep reading to see the same call made with cURL.
No Postman required. You just need a bearer token and your API key.
Open Self-service → Developers in the Doctavian Portal and copy the access token and API key.
Put your token and key into environment variables so they don't end up in your shell history:
export DOCTAVIAN_TOKEN="<paste your access token>"
export API_KEY="<paste your API key>"curl -i "https://api.doctavian.com/v1/common/user/get" \
-H "Authorization: Bearer $DOCTAVIAN_TOKEN" \
-H "x-api-key: $API_KEY"A 200 in the response confirms your first successful Doctavian call.
Every Doctavian response uses the same envelope, so it's worth a look now. This one describes you (shortened):
{
"result": {
"statusCode": 200,
"message": "OK",
"data": {
"user": {
"id": "1a2b3c4d-5e6f-4a1b-8c2d-3e4f5a6b7c8d",
"fullName": "Jane Doe",
"userEmail": "jane.doe@example.com",
"isActive": true,
"roles": { ... },
"settings": [ ... ]
}
}
},
"origin": "GET https://api.doctavian.com/v1/common/user/get",
"dateTime": "2026-10-14T08:42:17.979Z",
"userId": "1a2b3c4d-5e6f-4a1b-8c2d-3e4f5a6b7c8d",
"operationId": "a466bda0c19b9da6d806ee25706a5b19"
}The payload is always under result.data. Check that fullName and userEmail are you: they show which account the token was issued for. Keep the operationId: it identifies the request in Doctavian's logs, so quote it in any support request.
Errors use the same outer shape with error in place of result. See Error Handling.
That's the foundation every other endpoint builds on.
The error code in error.innerErrors[].code points straight at what's wrong:
401 → the token or the x-api-key is missing, expired or invalid. Get a fresh token, and check the key is the one issued for the API you're calling.404 → the request matched no operation. Check the method and path, including the /v1 prefix.The full lookup table is in Authentication → Troubleshooting.
You're authenticated and connected. Where you go next depends on what you're building: