Ayra HealthRequest access

A clearer path to your first request.

Reference examples for the shared authorization and evidence core. Confirm the candidate, contract and approved environment before integration.

terminal
$ curl -X POST https://api.ayra.health/v1/gate/check \
    -H "Authorization: Bearer YOUR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{"workflow": "intake_auth", "intent": "READ"}'

Getting started

Set up the SDK, authenticate, and make your first verification request.

Install the SDK

bash
npm install @ayra-health/sdk

2 · Configure credentials Initialize the client with your credentials. Keep the API key in a server-side environment variable.

Step-by-step setup

  1. 1

    Install the SDK

    1 · Install the SDK Choose the JavaScript / TypeScript or Python wrapper for your server environment.

  2. 2

    Configure credentials

    2 · Configure credentials Initialize the client with your credentials. Keep the API key in a server-side environment variable.

  3. 3

    Make your first gate call

    3 · Make your first request Send the workflow identifier, requested intent, and context to the gate check endpoint.

json
{ "workflow": "intake_auth", "intent": "READ", "context": { "jurisdiction": "TX" } }

Examples are reference payloads, not evidence of a production connection. Do not submit real patient data to a pilot fixture.

Authentication

Ayra Health uses API keys to authenticate requests. View and manage API keys in the dashboard.

API key authentication

headers
Authorization: Bearer YOUR_API_KEY

Note: All requests require a valid API key from your dashboard. Keep it secret.

curl
$ curl -X POST https://api.ayra.health/v1/gate/check \
    -H "Authorization: Bearer YOUR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{"workflow": "intake_auth", "intent": "READ"}'

Note: Rotate your API keys regularly and keep them secret. Never hardcode keys in client-side code.

All requests require a valid API key. Rotate keys regularly. Never hardcode keys in client-side code.

Gate API reference

Core verification engine endpoints.

POST/v1/gate/checkEvaluate authority for a requested intent.{ workflow: "auth", intent: "WRITE" }
POST/v1/gate/verifyCryptographically verify a prior decision.{ proof_bundle: "sha256:099..." }
GET/v1/gate/receiptRetrieve the audit receipt for a decision ID.?gate_id=67b-99f...

Request parameters

ParameterTypeRequiredDescription
workflowstringRequiredIdentifier for the verification flow.
contextobjectRequiredJurisdictional and consent metadata.
intentstringRequiredThe operation being performed.
jurisdictionstringOptionalUS State code (e.g. 'TX').

Response

json
{
  "decision": "ALLOW",
  "proof_bundle": "sha256:099x88231afb332",
  "latency": "42ms",
  "gate_id": "gate_77x_01992"
}

ALLOW is a configured gate decision. It does not imply payer approval, successful receipt anchoring, or clinical validation. 42ms is an example value, not a performance guarantee.

Webhooks

Configure endpoints to receive verification-outcome events.

Endpoint configuration

Endpoint configuration Provide an HTTPS endpoint that accepts POST requests. Use a secure webhook secret for signature verification.

Event typeTriggerDescription
gate.passedDecisionVerification succeeded and a decision was issued.
gate.failedDecisionVerification failed or the request was rejected.
receipt.issuedAuditAn audit receipt is available for the decision ID.
json
{
  "event": "gate.passed",
  "gate_id": "gate_77x_01992",
  "decision": "ALLOW",
  "proof_bundle": "sha256:099x88231afb332",
  "latency": "42ms"
}

Note: We use an exponential backoff retry policy (3 attempts) with a 30-second timeout. If delivery fails, events are queued for 24 hours.

Process the decision and receipt event independently. Do not equate a gate result with anchor success.

SDK & Libraries

Native language wrappers for your integration.

JS / TypeScript

bash
npm install @ayra-health/sdk
typescript
const ayra = new AyraClient({ apiKey: process.env.AYRA_KEY });

Python

bash
pip install ayra
python
client = ayra.Client( api_key="sk_live_..." )

The source key string is an example, not a working credential. Load real credentials securely on your server.

Changelog

Recent updates to the Gate API and SDKs.

  1. v1.4

    Jan 12, 2026

    Added receipt.issued webhook event and improved proof bundle validation.

  2. v1.3

    Dec 03, 2025

    Introduced jurisdiction overrides and improved SDK error handling.

  3. v1.2

    Nov 18, 2025

    Released Python SDK and updated documentation examples.

Support

Need help? Start with the docs, then reach out to the team.

Documentation

docs.ayra.health

Email support

support@ayrahealth.com

Community / Slack

Join the developer community for implementation help and best practices.

Your workflow. A considered starting point.

Start with a scoped conversation. Explore synthetic examples before any governed deployment.

Request access