{"removeAttribution":false,"l10n":{"translations":{"default_locale":{"translation":{}}},"defaultLocale":"default_locale","locales":[{"code":"default_locale","name":"default_locale"}]},"logo":{"image":"/assets/xcures-logo.a5a183b4a30f43d2a160b3ddab8e9ba68af93cbf3822097372ae70483e82fadc.9c1bb791.svg","link":"/index","altText":"xCures Logo","favicon":"/assets/favicon.8fb5d9f4c598cd09e60edea1fbaab534a04b6b3471a82f5867145a40918f306a.419bb737.ico"},"navbar":{"items":[{"type":"link","fsPath":"api-introduction.page.tsx","metadata":{},"label":"API Introduction","link":"/api-introduction","linePosition":"top","routeSlug":"/api-introduction"},{"type":"link","fsPath":"apis/current.json","metadata":{"type":"openapi","title":"xCures API","description":"# Authentication\nOur API requires a Bearer Token in the `Authorization` header for auth. Most of our endpoints also require a `ProjectId` header to set the context of the request. It must be one of the projects the api client has permissions to.\n\n### Getting a token\nTo get a token, use your `client_id` and `client_secret` to execute a client credentials exchange.\n\n#### Example CURL command:\n\n    curl --request POST \\\n        --url https://partner.xcures.com/oauth/token \\\n        --header 'content-type: application/json' \\\n        --data '{\"client_id\":\"{your_client_id}\",\"client_secret\":\"{your_client_secret}\",\"grant_type\":\"client_credentials\"}'\n        \n#### Response:\n\n    {\n        \"access_token\": \"{your_temporary_access_token}\",\n        \"token_type\": \"Bearer\"\n    }\n\n### Using the token with our API:\nNow just include that bearer token in the `Authorization` header of your requests to our API.\n\n#### Example authorized request:\n\n    curl --request GET \\\n        --url https://partner.xcures.com/api/v1/patient-registry/subject \\\n        --header 'ProjectId: {your_project_id}' \\\n        --header 'authorization: Bearer {your_temporary_access_token}'"},"label":"API Reference","link":"/apis/current","linePosition":"top","routeSlug":"/apis/current"},{"type":"link","fsPath":"support.page.tsx","metadata":{},"label":"Support","link":"/support","linePosition":"top","routeSlug":"/support"},{"type":"link","fsPath":"changelog.page.tsx","metadata":{},"label":"Changelog","link":"/changelog","linePosition":"top","routeSlug":"/changelog"}]},"footer":{"copyrightText":"© 2026 xCures, Inc. All rights reserved.","items":[{"type":"group","label":"About","items":[{"type":"link","link":"","label":"xCures retrieves, organizes, and structures medical records and presents encounter specific checklists and summaries so care teams can act with confidence.","linePosition":"top"}],"linePosition":"top"},{"type":"group","label":"Docs","items":[{"type":"link","link":"/api-introduction","label":"API Introduction","linePosition":"top"},{"type":"link","link":"/apis/current.json","label":"API Reference","linePosition":"top"},{"type":"link","link":"/sdk","label":"SDKs","linePosition":"top"},{"type":"link","link":"/platform_user_guide","label":"Platform User Guide","linePosition":"top"},{"type":"link","link":"/faq","label":"FAQ","linePosition":"top"}],"linePosition":"top"},{"type":"group","label":"Support","items":[{"type":"link","link":"/support","label":"Support Center","linePosition":"top"},{"type":"link","link":"https://status.xcures.com/","label":"Service Status","external":true,"linePosition":"top"},{"type":"link","link":"mailto:help@xcures.com","label":"help@xcures.com","linePosition":"top"}],"linePosition":"top"}]},"links":[{"rel":"stylesheet","href":"https://fonts.googleapis.com/css2?family=VT323&display=swap"},{"rel":"stylesheet","href":"https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap"},{"rel":"stylesheet","href":"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/7.0.0/css/all.min.css"}],"aiAssistant":{"hide":false,"suggestions":["How do I authenticate with the API?","How do I create patients in the system?","How do I get support?"],"trigger":{"hide":false,"inputType":"button","inputIcon":"chat"}},"navigation":{"actions":{"hide":false,"items":["copy","view","chatgpt","claude","docs-mcp-cursor","docs-mcp-vscode"]},"nextButton":{},"previousButton":{}},"markdown":{"frontMatterKeysToResolve":["image","links"],"partialsFolders":["**/_partials/**"],"lastUpdatedBlock":{"format":"timeago"},"toc":{"header":"On this page","depth":3},"editPage":{}},"openapi":{"sortRequiredPropsFirst":true,"hideInfoMetadata":true,"codeSamples":{"languages":[{"lang":"curl","label":"cURL"},{"lang":"JavaScript"},{"lang":"Python"},{"lang":"Node.js"},{"lang":"Java"},{"lang":"PHP"},{"lang":"C#"},{"lang":"Ruby"}]}},"mcp":{"hide":false,"docs":{"hide":false,"name":"MCP server","ignore":[]}},"banner":[],"breadcrumbs":{"prefixItems":[]},"userMenu":{"hide":false},"auth":{"idpsInfo":[{"idpId":"oidc","type":"OIDC","title":"Reunite"}]},"search":{},"entitiesCatalog":{},"apiProducts":{},"mcpData":{"docs":{"enabled":true,"name":"MCP server"}},"searchFeatures":{"advanced":{"enabled":false},"ai":{"enabled":true}},"analytics":{"ga":{"trackingId":"","exclude":[],"trackers":{}}}}