Synchronizing
Architectural Primitives

API reference

New integration? Follow the quickstart to create an application, manage members and receive status updates.

Create applications, issue applicant sign-in links, manage access and retrieve onboarding outcomes from your backend. Use this reference for request fields, response bodies and error handling.

Start with the integration guide for a working flow from intake selection to outcome reconciliation. Arrange your tenant and API credentials with Aurora Edge. Examples use synthetic records and credential placeholders.

Base URL and authentication

HTTP headers
https://aegis-api.theauroraedge.com

Authorization: Bearer aegis_<key-id>_<secret>
Content-Type: application/json

POST and PATCH bodies use JSON. GET and DELETE have no body. Replace path placeholders in braces with returned IDs, keep IDs opaque and use the exact documented path. The current router matches the whole path and tolerates a trailing slash.

Call from your backend
Keep keys in your server secret manager. CORS is disabled and OPTIONS returns 405 with an empty body. Your frontend opens the returned loginUrl without receiving an API key. Sentinel credentials and Firebase staff callable tokens do not authenticate this API.

The key selects one tenant; sending tenantId cannot select another. Request the scopes your integration needs. Keys issued without explicit scopes grant applications:write only.

ScopeGrants
applications:writeProvisioning, sign-in links, membership and lock/unlock.
applications:readApplication summaries, current application details, information requests and intake labels.
webhooks:manageWebhook registration, configuration, secret rotation, test sends and delivery history.

A valid key without a required scope returns 403 permission-denied naming that scope. Ask Aurora Edge to issue the scopes you need. Rotation and revocation invalidate the old credential immediately. For a gradual cutover, arrange a second key, switch callers, verify them and revoke the first. See Administration.

Endpoint directory

Method and pathPurposeScope
POST /v1/applicationsCreate an application without minting a sign-in link.applications:write
POST /v1/login-sessionsProvision an application and return a sign-in link for the supplied applicant.applications:write
GET /v1/applicationsFind applications and reconcile current state across every page in your tenant.applications:read
GET /v1/applications/{clientId}Read the current application, latest decision, open request summary and membership roster.applications:read
GET /v1/applications/{clientId}/info-requestsList information requests and the prompts the applicant must address.applications:read
GET /v1/intakesDiscover labels usable for provisioning.applications:read
POST /v1/applications/{clientId}/login-sessionsMint a fresh link for an existing application without provisioning or adding a member.applications:write
POST /v1/applications/{clientId}/membersAdd portal access for one person. This call does not send an email or mint a link.applications:write
DELETE /v1/applications/{clientId}/members/{uid}Remove a member, with ownership handover when needed.applications:write
POST /v1/applications/{clientId}/lockDisable applicant portal access without deleting the case or changing its decision.applications:write
POST /v1/applications/{clientId}/unlockRestore applicant portal access.applications:write

Webhook endpoint management and event delivery are covered in Webhooks and callbacks.

Response conventions

Success bodies are JSON except 204, which has no body. Collections use data arrays. Intake and information-request lists are unpaged. Timestamps are RFC 3339 UTC with milliseconds, for example 2026-09-10T09:00:00.000Z. Nullable fields return null when unavailable; optional fields may be omitted. Accept additive response fields. Webhook signature timestamps use Unix seconds.

In field tables, Always means the response key is present, including when null is permitted. Within parent means the key is present in each containing object. Conditional labels describe omitted fields or response variants. Required and Optional describe request inputs.

Application statusClient interpretation
pendingCreated or awaiting staff review. Submission can leave this status unchanged.
needs_infoThe applicant owes information. Read requests and direct them to the portal.
holdThe case is on hold. Never on_hold.
pending_approvalApproval proposed, awaiting a second approver.
activeApproved. There is no approved status string.
rejectedRejected; the application read includes rejectionReason.

These are onboarding states, not transport success. Store unknown values without treating them as approval. See Onboarding lifecycle.

POST /v1/applications

Create an application without minting a sign-in link.

Required scope: applications:write.

Request. Send a JSON body.

FieldTypeDescription
AuthorizationRequiredstring (header)Bearer aegis_<key-id>_<secret>. Use a server API key with the scope below.
Content-TypeRequiredstring (header)application/json.
Idempotency-KeyOptionalstring (header)Optional: one stable operation key, 1 to 128 visible ASCII characters, no whitespace or duplicate header lines. Matching successful requests replay within 24 hours. See request replay below.
emailRequiredstringApplicant email, trimmed and lowercased. Required, must contain @, maximum 320 characters.
externalRefOptionalstringYour stable application reference. Trimmed and cut to 200 characters. Used as the identity instead of email when nonempty. Send the same value on every repeat.
companyNameOptionalstringDisplay name. Trimmed and cut to 200 characters. Defaults to email; a repeat does not rename the application.
labelIdOptionalstringIntake label from GET /v1/intakes. When absent, uses the first usable intake in configured order. Send an explicit label when you support multiple intakes. A repeat does not change an existing application intake.
Example request
POST /v1/applications HTTP/1.1
Host: aegis-api.theauroraedge.com
Authorization: Bearer aegis_<key-id>_<secret>
Idempotency-Key: <one-operation-key>
Content-Type: application/json

{
  "email": "cfo@acme.example",
  "companyName": "Acme Partner FZ-LLC",
  "externalRef": "ORDER-88213",
  "labelId": "corporate"
}

Response 200: first successful execution. JSON body.

Example response
{
  "clientId": "a1b2c3d4-1111-4222-8333-123456789abc",
  "status": "pending"
}
FieldTypeDescription
clientIdAlwaysstringStable application ID, unchanged on a repeat.
statusAlwaysstringCurrent lifecycle status. A new application is pending. A repeat returns its stored status.

Request replay

With Idempotency-Key, the first successful response has Aegis-Idempotency-Replayed: false; a matching completed replay has Aegis-Idempotency-Replayed: true. Both have a fresh Aegis-Request-Id. Without the request header, the replay response header is absent. Read key validation, expiry, conflicts and recovery.

A matching replay returns the same successful status and body shown above, including an empty body for 204. It describes the earlier operation; read the resource for current state. Current authorization and resource guards still apply.

  • 400 invalid-argument for invalid email, unknown labelId or no usable intake; 400 failed-precondition for an unusable intake configuration or full membership roster on a repeat that would add a member.
  • 409 already-exists when an externalRef is bound to another applicant email. Correct your reference or email; do not retry unchanged.
  • 403 permission-denied for a suspended tenant or locked application; 410 failed-precondition for an erased application. Missing or foreign application IDs return 404 not-found.
  • A repeat can restore the original applicant membership if it was removed, subject to the 20-member limit. Use the dedicated reissue route for a new link to an existing case.

POST /v1/login-sessions

Provision an application and return a sign-in link for the supplied applicant.

Required scope: applications:write.

Request. Send a JSON body.

FieldTypeDescription
AuthorizationRequiredstring (header)Bearer aegis_<key-id>_<secret>. Use a server API key with the scope below.
Content-TypeRequiredstring (header)application/json.
Idempotency-KeyOptionalstring (header)Optional: one stable operation key, 1 to 128 visible ASCII characters, no whitespace or duplicate header lines. Matching successful requests replay within 24 hours. See request replay below.
emailRequiredstringApplicant email, trimmed and lowercased. Required, must contain @, maximum 320 characters.
externalRefOptionalstringYour stable application reference. Trimmed and cut to 200 characters. Used as the identity instead of email when nonempty. Send the same value on every repeat.
companyNameOptionalstringDisplay name. Trimmed and cut to 200 characters. Defaults to email; a repeat does not rename the application.
labelIdOptionalstringIntake label from GET /v1/intakes. When absent, uses the first usable intake in configured order. Send an explicit label when you support multiple intakes. A repeat does not change an existing application intake.
redirectPathOptionalstringOptional landing page: /upload-documents, /status, /form-parser, /dashboard or /requests. Other values are ignored; the portal chooses the page from the application state.
Example request
POST /v1/login-sessions HTTP/1.1
Host: aegis-api.theauroraedge.com
Authorization: Bearer aegis_<key-id>_<secret>
Idempotency-Key: <one-operation-key>
Content-Type: application/json

{
  "email": "cfo@acme.example",
  "companyName": "Acme Partner FZ-LLC",
  "externalRef": "ORDER-88213",
  "labelId": "corporate",
  "redirectPath": "/dashboard"
}

Response 200: first successful execution. JSON body.

Example response
{
  "loginUrl": "https://aegis-gateway.theauroraedge.com/sso?ticket=<single-use-ticket>",
  "clientId": "a1b2c3d4-1111-4222-8333-123456789abc",
  "expiresAt": "2026-09-13T09:00:00.000Z"
}
FieldTypeDescription
loginUrlAlwaysstringSingle-use credential. Redirect to this exact URL or send it privately to the intended member; never log it.
clientIdAlwaysstringPermanent application identifier. Store it against your own record.
expiresAtAlwaysstringRFC 3339 UTC expiry. Links live three days. Read this field; no ttl parameter is supported.

Request replay

With Idempotency-Key, the first successful response has Aegis-Idempotency-Replayed: false; a matching completed replay has Aegis-Idempotency-Replayed: true. Both have a fresh Aegis-Request-Id. Without the request header, the replay response header is absent. Read key validation, expiry, conflicts and recovery.

Response 200: matching replay
{
  "clientId": "a1b2c3d4-1111-4222-8333-123456789abc",
  "replayed": true
}
FieldTypeDescription
clientIdAlways on replaystringIdentity of the resource from the completed operation.
replayedAlways on replaybooleanExactly true. No loginUrl, expiresAt, signing secret or other first-response fields are returned in this variant.

If you lost the original link, explicitly reissue through the application login-sessions route using a new operation key. Reissue does not revoke older unused tickets.

  • The same provisioning validation, identity rules and errors as POST /v1/applications apply.
  • Without an operation key, every successful repeat mints a fresh ticket. With the same key, a completed replay returns identity only. Aegis does not email the link.

GET /v1/applications

Find applications and reconcile current state across every page in your tenant.

Required scope: applications:read.

Request. No request body.

FieldTypeDescription
AuthorizationRequiredstring (header)Bearer aegis_<key-id>_<secret>. Use a server API key with the scope below.
limitOptionalinteger (query)Optional page size, 1 to 100, default 25. Keep unchanged with a cursor.
cursorOptionalstring (query)Opaque returned nextCursor, 1 to 32768 characters if supplied. Omit on the first page. Bound to the tenant, filters and limit.
externalRefOptionalstring (query)Exact match, 1 to 200 characters, no trimming. URL-encode the value.
statusOptionalstring (query)pending, hold, needs_info, pending_approval, active or rejected.
updatedSinceOptionalstring (query)Inclusive updatedAt lower bound. RFC 3339 timestamp with explicit offset or Z, up to 9 fractional digits. Unknown offset -00:00 and leap seconds are refused.
Example request
GET /v1/applications?limit=25&status=pending HTTP/1.1
Host: aegis-api.theauroraedge.com
Authorization: Bearer aegis_<key-id>_<secret>

Response 200. JSON body.

Example response
{
  "data": [
    {
      "clientId": "a1b2c3d4-1111-4222-8333-123456789abc",
      "externalRef": "ORDER-88213",
      "companyName": "Acme Partner FZ-LLC",
      "type": "Corporate Client",
      "status": "pending",
      "createdAt": "2026-09-10T09:00:00.000Z",
      "updatedAt": "2026-09-10T09:00:00.000Z"
    }
  ],
  "nextCursor": null,
  "hasMore": false
}
FieldTypeDescription
dataAlwaysobject[]Application summaries. Empty array when none match.
data[].clientIdWithin parentstringApplication ID.
data[].externalRefWithin parentstring | nullYour reference, if supplied at creation.
data[].companyNameWithin parentstring | nullApplication display name.
data[].typeWithin parentstring | nullCorporate Client or Individual Client.
data[].statusWithin parentstring | nullpending, hold, needs_info, pending_approval, active or rejected. active means approved.
data[].createdAtWithin parentstring | nullRFC 3339 UTC application creation time.
data[].updatedAtWithin parentstring | nullRFC 3339 UTC application update time.
data[].submittedAtConditionalstring | null, optionalRFC 3339 UTC timestamp when stored, otherwise omitted. Can be absent even after a new submission. Do not use its presence or absence as a reliable submitted/not-submitted flag; receive application.submitted events to track submissions.
data[].rejectionReasonConditionalstring | null, optionalCustomer-visible reason. Present only when status is rejected.
nextCursorAlwaysstring | nullOpaque token for another page. Null on the final page.
hasMoreAlwaysbooleanTrue when another page exists. No total count is returned.
Empty page
{
  "data": [],
  "nextCursor": null,
  "hasMore": false
}
  • Filters can be combined. Results sort by updatedAt descending, then application ID descending. Unknown or duplicate query names, invalid values and mismatched cursors return 400 invalid-argument. Encoded query length is limited to 65536 characters.
  • Pagination is not a frozen snapshot. Keep filters and limit fixed; deduplicate clientIds and overlap the next updatedSince sweep. Save a checkpoint only after every page succeeds. Reads remain available during suspension.

GET /v1/applications/{clientId}

Read the current application, latest decision, open request summary and membership roster.

Required scope: applications:read.

Request. No request body.

FieldTypeDescription
AuthorizationRequiredstring (header)Bearer aegis_<key-id>_<secret>. Use a server API key with the scope below.
clientIdRequiredpath stringApplication identifier returned by provisioning.
Example request
GET /v1/applications/{clientId} HTTP/1.1
Host: aegis-api.theauroraedge.com
Authorization: Bearer aegis_<key-id>_<secret>

Response 200. JSON body.

Example response
{
  "clientId": "a1b2c3d4-1111-4222-8333-123456789abc",
  "externalRef": "ORDER-88213",
  "companyName": "Acme Partner FZ-LLC",
  "type": "Corporate Client",
  "status": "needs_info",
  "createdAt": "2026-09-10T09:00:00.000Z",
  "updatedAt": "2026-09-10T09:00:00.000Z",
  "submittedAt": "2026-09-10T09:00:00.000Z",
  "decision": {
    "action": "needs_info",
    "fromStatus": "pending",
    "toStatus": "needs_info",
    "byRole": "analyst",
    "comment": null,
    "at": "2026-09-10T09:00:00.000Z"
  },
  "openInfoRequest": {
    "requestId": "request_123",
    "seq": 1,
    "round": 1,
    "openItems": 1,
    "answeredItems": 0,
    "at": "2026-09-10T09:00:00.000Z"
  },
  "members": [
    {
      "uid": "member_123",
      "email": "cfo@acme.example",
      "role": "applicant",
      "joinedAt": "2026-09-10T09:00:00.000Z"
    }
  ]
}
FieldTypeDescription
clientIdAlwaysstringApplication ID.
externalRefAlwaysstring | nullYour reference, if supplied at creation.
companyNameAlwaysstring | nullApplication display name.
typeAlwaysstring | nullCorporate Client or Individual Client.
statusAlwaysstring | nullpending, hold, needs_info, pending_approval, active or rejected. active means approved.
createdAtAlwaysstring | nullRFC 3339 UTC application creation time.
updatedAtAlwaysstring | nullRFC 3339 UTC application update time.
submittedAtConditionalstring | null, optionalRFC 3339 UTC timestamp when stored, otherwise omitted. Can be absent even after a new submission. Do not use its presence or absence as a reliable submitted/not-submitted flag; receive application.submitted events to track submissions.
rejectionReasonConditionalstring | null, optionalCustomer-visible reason. Present only when status is rejected.
decisionAlwaysobject | nullLatest decision, or null when none exists.
decision.actionWithin parentstring | nullAction: approve, reject, hold, approved, proposal_rejected, needs_info, customer_responded, info_request_closed or info_request_cancelled. Separate from application status; preserve unfamiliar values.
decision.fromStatusWithin parentstring | nullApplication status before the decision.
decision.toStatusWithin parentstring | nullApplication status resulting from the decision.
decision.byRoleWithin parentstring | nullActor role. No staff email is returned.
decision.commentWithin parentstring | nullOnly a comment explicitly shared with clients. Decision entry accepts at most 5000 characters. Legacy, unmarked and internal comments return null; no visibility marker is exposed.
decision.atWithin parentstring | nullRFC 3339 UTC decision time.
openInfoRequestAlwaysobject | nullCurrent request summary. Can remain populated while staff review a responded request.
openInfoRequest.requestIdWithin parentstring | nullInformation-request ID.
openInfoRequest.seqWithin parentnumber | nullRequest sequence within this application.
openInfoRequest.roundWithin parentnumber | nullResponse round within this request.
openInfoRequest.openItemsWithin parentnumber | nullItems requiring applicant action.
openInfoRequest.answeredItemsWithin parentnumber | nullAnswered items awaiting staff review.
openInfoRequest.atWithin parentstring | nullRFC 3339 UTC summary timestamp.
membersAlwaysarrayAll members, unpaged. Maximum 20 members.
members[].uidWithin parentstring | nullOpaque member ID; use it for removal and ownership handover.
members[].emailWithin parentstring | nullNormalized member email.
members[].roleWithin parentstring | nullapplicant or teammate. This is not a staff role and does not identify the current owner after a handover.
members[].joinedAtWithin parentstring | nullRFC 3339 UTC membership creation time. Preserved on repeat addition.
Pending application: optional fields omitted
{
  "clientId": "a1b2c3d4-1111-4222-8333-123456789abc",
  "externalRef": "ORDER-88213",
  "companyName": "Acme Partner FZ-LLC",
  "type": "Corporate Client",
  "status": "pending",
  "createdAt": "2026-09-10T09:00:00.000Z",
  "updatedAt": "2026-09-10T09:00:00.000Z",
  "decision": null,
  "openInfoRequest": null,
  "members": []
}
Hold: comment explicitly shared with clients
{
  "clientId": "a1b2c3d4-1111-4222-8333-123456789abc",
  "externalRef": "ORDER-88213",
  "companyName": "Acme Partner FZ-LLC",
  "type": "Corporate Client",
  "status": "hold",
  "createdAt": "2026-09-10T09:00:00.000Z",
  "updatedAt": "2026-09-10T09:00:00.000Z",
  "submittedAt": "2026-09-10T09:00:00.000Z",
  "decision": {
    "action": "hold",
    "fromStatus": "pending",
    "toStatus": "hold",
    "byRole": "analyst",
    "comment": "Awaiting review of the supplied evidence.",
    "at": "2026-09-10T09:00:00.000Z"
  },
  "openInfoRequest": null,
  "members": [
    {
      "uid": "member_123",
      "email": "cfo@acme.example",
      "role": "applicant",
      "joinedAt": "2026-09-10T09:00:00.000Z"
    }
  ]
}
Rejected: client-facing reason, internal decision comment hidden
{
  "clientId": "a1b2c3d4-1111-4222-8333-123456789abc",
  "externalRef": "ORDER-88213",
  "companyName": "Acme Partner FZ-LLC",
  "type": "Corporate Client",
  "status": "rejected",
  "createdAt": "2026-09-10T09:00:00.000Z",
  "updatedAt": "2026-09-10T09:00:00.000Z",
  "submittedAt": "2026-09-10T09:00:00.000Z",
  "rejectionReason": "Required evidence was not supplied.",
  "decision": {
    "action": "reject",
    "fromStatus": "pending",
    "toStatus": "rejected",
    "byRole": "analyst",
    "comment": null,
    "at": "2026-09-10T09:00:00.000Z"
  },
  "openInfoRequest": null,
  "members": []
}
  • Missing, foreign and erased applications return the same 404 not-found. Reads remain available for locked applications and suspended tenants with a valid read key.
  • No risk scores, screening results, form answers, document contents or internal staff notes are returned. There is no accessActive or ownerUid field in this read response.
  • This is the current snapshot. Submission can leave status pending; do not equate pending with an incomplete form.

GET /v1/applications/{clientId}/info-requests

List information requests and the prompts the applicant must address.

Required scope: applications:read.

Request. No request body.

FieldTypeDescription
AuthorizationRequiredstring (header)Bearer aegis_<key-id>_<secret>. Use a server API key with the scope below.
clientIdRequiredstring (path)Application ID returned by provisioning. Keep IDs opaque. A path ID is at most 1500 UTF-8 bytes; slash, dot-only segments and reserved double-underscore names are not addressable.
Example request
GET /v1/applications/{clientId}/info-requests HTTP/1.1
Host: aegis-api.theauroraedge.com
Authorization: Bearer aegis_<key-id>_<secret>

Response 200. JSON body.

Example response
{
  "data": [
    {
      "requestId": "request_123",
      "seq": 1,
      "round": 1,
      "status": "open",
      "openItems": 1,
      "answeredItems": 0,
      "comment": "Please update your licence.",
      "createdAt": "2026-09-10T09:00:00.000Z",
      "updatedAt": "2026-09-10T09:00:00.000Z",
      "respondedAt": null,
      "closedAt": null,
      "cancelledAt": null,
      "items": [
        {
          "itemId": "item_123",
          "type": "document",
          "prompt": "Upload the current trade licence.",
          "status": "open"
        }
      ]
    }
  ]
}
FieldTypeDescription
dataAlwaysarrayAll requests, unpaged, highest seq first. Empty array when none exist. No limit or cursor parameters.
data[].requestIdWithin parentstring | nullRequest identifier.
data[].seqWithin parentnumber | nullRequest sequence within the application. Distinct from webhook data.sequence.
data[].roundWithin parentnumber | nullResponse round within the request.
data[].statusWithin parentstringopen, responded, closed or cancelled. Active request status is derived from its items.
data[].openItemsWithin parentnumberCount of open and reopened items requiring applicant action.
data[].answeredItemsWithin parentnumberCount of answered items awaiting staff review.
data[].commentWithin parentstring | nullStaff-written request comment visible to the applicant. Request creation accepts at most 2000 characters.
data[].createdAtWithin parentstring | nullRFC 3339 UTC timestamp, null when the corresponding action has not occurred or no timestamp is stored.
data[].updatedAtWithin parentstring | nullRFC 3339 UTC timestamp, null when the corresponding action has not occurred or no timestamp is stored.
data[].respondedAtWithin parentstring | nullRFC 3339 UTC timestamp, null when the corresponding action has not occurred or no timestamp is stored.
data[].closedAtWithin parentstring | nullRFC 3339 UTC timestamp, null when the corresponding action has not occurred or no timestamp is stored.
data[].cancelledAtWithin parentstring | nullRFC 3339 UTC timestamp, null when the corresponding action has not occurred or no timestamp is stored.
data[].itemsWithin parentobject[]Request items and the prompts visible to the applicant. A request accepts at most 50 items.
data[].items[].itemIdWithin parentstring | nullItem identifier.
data[].items[].typeWithin parentstring | nullquestion, field or document.
data[].items[].promptWithin parentstring | nullStaff-written prompt, limited to 500 characters on entry. No applicant answer is returned.
data[].items[].statusWithin parentstring | nullopen, answered, accepted or reopened.
No information requests
{
  "data": []
}
  • Same 404 and read-access rules as the application read.
  • Applicant answers, uploaded files, filenames, correction values, staff actors and item event history are excluded. Answers and uploads must be supplied in the applicant portal.

GET /v1/intakes

Discover labels usable for provisioning.

Required scope: applications:read.

Request. No request body.

FieldTypeDescription
AuthorizationRequiredstring (header)Bearer aegis_<key-id>_<secret>. Use a server API key with the scope below.
Example request
GET /v1/intakes HTTP/1.1
Host: aegis-api.theauroraedge.com
Authorization: Bearer aegis_<key-id>_<secret>

Response 200. JSON body.

Example response
{
  "data": [
    {
      "labelId": "corporate",
      "name": "Corporate onboarding",
      "order": 0
    }
  ]
}
FieldTypeDescription
dataAlwaysarrayUnpaged labels with an attached intake pair, sorted by order ascending. Ties preserve configured order.
data[].labelIdWithin parentstring | nullValue to send when provisioning. A null value signals a configuration problem; ask staff to correct it.
data[].nameWithin parentstring | nullDisplay name.
data[].orderWithin parentnumber | nullConfigured ordering value. Missing or invalid order sorts as zero.
No usable intakes
{
  "data": []
}
  • No configured usable labels returns 200 with data: [], while attempting to create then returns 400.
  • Missing tenant returns 404. Suspension does not block this read. Internal pair IDs, form fields and risk rules are not exposed.

POST /v1/applications/{clientId}/login-sessions

Mint a fresh link for an existing application without provisioning or adding a member.

Required scope: applications:write.

Request. Send a JSON body.

FieldTypeDescription
AuthorizationRequiredstring (header)Bearer aegis_<key-id>_<secret>. Use a server API key with the scope below.
Content-TypeRequiredstring (header)application/json.
Idempotency-KeyOptionalstring (header)Optional: one stable operation key, 1 to 128 visible ASCII characters, no whitespace or duplicate header lines. Matching successful requests replay within 24 hours. See request replay below.
clientIdRequiredstring (path)Application ID returned by provisioning. Keep IDs opaque. A path ID is at most 1500 UTF-8 bytes; slash, dot-only segments and reserved double-underscore names are not addressable.
emailOptionalstring | nullOptional email naming an existing member, trimmed and lowercased, containing @ and at most 320 characters. If absent or null, selects the current owner, falling back to the original applicant when no owner is stored.
redirectPathOptionalstringOptional landing page: /upload-documents, /status, /form-parser, /dashboard or /requests. Other values are ignored; the portal chooses the page from the application state.
Example request
POST /v1/applications/{clientId}/login-sessions HTTP/1.1
Host: aegis-api.theauroraedge.com
Authorization: Bearer aegis_<key-id>_<secret>
Idempotency-Key: <one-operation-key>
Content-Type: application/json

{
  "email": "cfo@acme.example",
  "redirectPath": "/requests"
}

Response 200: first successful execution. JSON body.

Example response
{
  "loginUrl": "https://aegis-gateway.theauroraedge.com/sso?ticket=<single-use-ticket>",
  "clientId": "a1b2c3d4-1111-4222-8333-123456789abc",
  "expiresAt": "2026-09-13T09:00:00.000Z"
}
FieldTypeDescription
loginUrlAlwaysstringSingle-use credential. Redirect to this exact URL or send it privately to the intended member; never log it.
clientIdAlwaysstringPermanent application identifier. Store it against your own record.
expiresAtAlwaysstringRFC 3339 UTC expiry. Links live three days. Read this field; no ttl parameter is supported.

Request replay

With Idempotency-Key, the first successful response has Aegis-Idempotency-Replayed: false; a matching completed replay has Aegis-Idempotency-Replayed: true. Both have a fresh Aegis-Request-Id. Without the request header, the replay response header is absent. Read key validation, expiry, conflicts and recovery.

Response 200: matching replay
{
  "clientId": "a1b2c3d4-1111-4222-8333-123456789abc",
  "replayed": true
}
FieldTypeDescription
clientIdAlways on replaystringIdentity of the resource from the completed operation.
replayedAlways on replaybooleanExactly true. No loginUrl, expiresAt, signing secret or other first-response fields are returned in this variant.

If you lost the original link, explicitly reissue through the application login-sessions route using a new operation key. Reissue does not revoke older unused tickets.

  • 400 failed-precondition for an email that is invalid or is not an existing member, or when the application has no applicant email. Use POST members before minting a teammate link.
  • 403 permission-denied for a suspended tenant or locked application; 410 failed-precondition for an erased application. Missing or foreign application IDs return 404 not-found.
  • No ttl parameter. Each new execution mints a fresh three-day, single-use link without revoking older unused tickets. After ownership handover, omit email only to target the new owner.

POST /v1/applications/{clientId}/members

Add portal access for one person. This call does not send an email or mint a link.

Required scope: applications:write.

Request. Send a JSON body.

FieldTypeDescription
AuthorizationRequiredstring (header)Bearer aegis_<key-id>_<secret>. Use a server API key with the scope below.
Content-TypeRequiredstring (header)application/json.
Idempotency-KeyOptionalstring (header)Optional: one stable operation key, 1 to 128 visible ASCII characters, no whitespace or duplicate header lines. Matching successful requests replay within 24 hours. See request replay below.
clientIdRequiredstring (path)Application ID returned by provisioning. Keep IDs opaque. A path ID is at most 1500 UTF-8 bytes; slash, dot-only segments and reserved double-underscore names are not addressable.
emailRequiredstringMember email, trimmed and lowercased, containing @ and at most 320 characters.
Example request
POST /v1/applications/{clientId}/members HTTP/1.1
Host: aegis-api.theauroraedge.com
Authorization: Bearer aegis_<key-id>_<secret>
Idempotency-Key: <one-operation-key>
Content-Type: application/json

{
  "email": "legal@acme.example"
}

Response 200: first successful execution. JSON body.

Example response
{
  "uid": "member_456",
  "email": "legal@acme.example",
  "role": "teammate",
  "joinedAt": "2026-09-10T09:00:00.000Z"
}
FieldTypeDescription
uidAlwaysstring | nullOpaque member ID; use it for removal and ownership handover.
emailAlwaysstring | nullNormalized member email.
roleAlwaysstring | nullapplicant or teammate. This is not a staff role and does not identify the current owner after a handover.
joinedAtAlwaysstring | nullRFC 3339 UTC membership creation time. Preserved on repeat addition.

Request replay

With Idempotency-Key, the first successful response has Aegis-Idempotency-Replayed: false; a matching completed replay has Aegis-Idempotency-Replayed: true. Both have a fresh Aegis-Request-Id. Without the request header, the replay response header is absent. Read key validation, expiry, conflicts and recovery.

A matching replay returns the same successful status and body shown above, including an empty body for 204. It describes the earlier operation; read the resource for current state. Current authorization and resource guards still apply.

  • Repeat addition of the same member is idempotent and preserves joinedAt. Maximum 20 members; adding a new person at the cap returns 400 failed-precondition. Invalid email returns 400 invalid-argument.
  • 403 permission-denied for a suspended tenant or locked application; 410 failed-precondition for an erased application. Missing or foreign application IDs return 404 not-found.
  • Read the application to confirm membership, then use its login-sessions route with this email to issue a link.

DELETE /v1/applications/{clientId}/members/{uid}

Remove a member, with ownership handover when needed.

Required scope: applications:write.

Request. No request body.

FieldTypeDescription
AuthorizationRequiredstring (header)Bearer aegis_<key-id>_<secret>. Use a server API key with the scope below.
Idempotency-KeyOptionalstring (header)Optional: one stable operation key, 1 to 128 visible ASCII characters, no whitespace or duplicate header lines. Matching successful requests replay within 24 hours. See request replay below.
clientIdRequiredstring (path)Application ID returned by provisioning. Keep IDs opaque. A path ID is at most 1500 UTF-8 bytes; slash, dot-only segments and reserved double-underscore names are not addressable.
uidRequiredpath stringMember ID from the application members array.
newOwnerUidConditionalquery string, conditionalRequired when removing the current owner. Must name another existing member, never the removed member. Keep ownership in your integration record; the application read does not return ownerUid.
Example request
DELETE /v1/applications/{clientId}/members/{uid}?newOwnerUid=member_456 HTTP/1.1
Host: aegis-api.theauroraedge.com
Authorization: Bearer aegis_<key-id>_<secret>
Idempotency-Key: <one-operation-key>

Response 204: first successful execution. Empty body. Do not parse as JSON.

Request replay

With Idempotency-Key, the first successful response has Aegis-Idempotency-Replayed: false; a matching completed replay has Aegis-Idempotency-Replayed: true. Both have a fresh Aegis-Request-Id. Without the request header, the replay response header is absent. Read key validation, expiry, conflicts and recovery.

A matching replay returns the same successful status and body shown above, including an empty body for 204. It describes the earlier operation; read the resource for current state. Current authorization and resource guards still apply.

  • Missing or foreign application returns 404. Removing a nonmember, omitting a required handover or naming an invalid new owner returns 400 failed-precondition.
  • Removal is allowed while the tenant is suspended or the application is locked. An own-tenant erased record reaches membership validation and normally refuses because erasure clears membership.
  • Without a key, repeat removal returns 400 once the member is gone. A matching successful keyed replay returns 204. Ownership handover does not change the original applicantEmail or member role labels.

POST /v1/applications/{clientId}/lock

Disable applicant portal access without deleting the case or changing its decision.

Required scope: applications:write.

Request. Send a JSON body.

FieldTypeDescription
AuthorizationRequiredstring (header)Bearer aegis_<key-id>_<secret>. Use a server API key with the scope below.
Content-TypeRequiredstring (header)application/json.
Idempotency-KeyOptionalstring (header)Optional: one stable operation key, 1 to 128 visible ASCII characters, no whitespace or duplicate header lines. Matching successful requests replay within 24 hours. See request replay below.
clientIdRequiredstring (path)Application ID returned by provisioning. Keep IDs opaque. A path ID is at most 1500 UTF-8 bytes; slash, dot-only segments and reserved double-underscore names are not addressable.
Example request
POST /v1/applications/{clientId}/lock HTTP/1.1
Host: aegis-api.theauroraedge.com
Authorization: Bearer aegis_<key-id>_<secret>
Idempotency-Key: <one-operation-key>
Content-Type: application/json

{}

Response 200: first successful execution. JSON body.

Example response
{
  "clientId": "a1b2c3d4-1111-4222-8333-123456789abc",
  "accessActive": false
}
FieldTypeDescription
clientIdAlwaysstringApplication ID.
accessActiveAlwaysbooleanfalse after lock, true after unlock.

Request replay

With Idempotency-Key, the first successful response has Aegis-Idempotency-Replayed: false; a matching completed replay has Aegis-Idempotency-Replayed: true. Both have a fresh Aegis-Request-Id. Without the request header, the replay response header is absent. Read key validation, expiry, conflicts and recovery.

A matching replay returns the same successful status and body shown above, including an empty body for 204. It describes the earlier operation; read the resource for current state. Current authorization and resource guards still apply.

  • Repeating the same action returns 200 with the same access state. Missing or foreign application: 404. Erased application: 410 failed-precondition.
  • Lock remains allowed during tenant suspension. New links, new members and repeated provisioning are refused while locked; tenant reads and member removal remain available.
  • Locking is not cancellation or erasure. There is no cancelled application status.

POST /v1/applications/{clientId}/unlock

Restore applicant portal access.

Required scope: applications:write.

Request. Send a JSON body.

FieldTypeDescription
AuthorizationRequiredstring (header)Bearer aegis_<key-id>_<secret>. Use a server API key with the scope below.
Content-TypeRequiredstring (header)application/json.
Idempotency-KeyOptionalstring (header)Optional: one stable operation key, 1 to 128 visible ASCII characters, no whitespace or duplicate header lines. Matching successful requests replay within 24 hours. See request replay below.
clientIdRequiredstring (path)Application ID returned by provisioning. Keep IDs opaque. A path ID is at most 1500 UTF-8 bytes; slash, dot-only segments and reserved double-underscore names are not addressable.
Example request
POST /v1/applications/{clientId}/unlock HTTP/1.1
Host: aegis-api.theauroraedge.com
Authorization: Bearer aegis_<key-id>_<secret>
Idempotency-Key: <one-operation-key>
Content-Type: application/json

{}

Response 200: first successful execution. JSON body.

Example response
{
  "clientId": "a1b2c3d4-1111-4222-8333-123456789abc",
  "accessActive": true
}
FieldTypeDescription
clientIdAlwaysstringApplication ID.
accessActiveAlwaysbooleanfalse after lock, true after unlock.

Request replay

With Idempotency-Key, the first successful response has Aegis-Idempotency-Replayed: false; a matching completed replay has Aegis-Idempotency-Replayed: true. Both have a fresh Aegis-Request-Id. Without the request header, the replay response header is absent. Read key validation, expiry, conflicts and recovery.

A matching replay returns the same successful status and body shown above, including an empty body for 204. It describes the earlier operation; read the resource for current state. Current authorization and resource guards still apply.

  • Repeating the same action returns 200 with the same access state. Missing or foreign application: 404. Erased application: 410 failed-precondition.
  • Unlock is refused with 403 permission-denied while the tenant is suspended, including a repeated unlock. Missing tenant returns 404.
  • Locking is not cancellation or erasure. There is no cancelled application status.

Optional Idempotency-Key and safe retries

Eleven write routes accept an optional Idempotency-Key: both create routes, application link reissue, member addition and removal, lock and unlock, and webhook registration, update, retirement and secret rotation. GET requests do not create replay records. The synchronous webhook test rejects this header with 400 invalid-argument before sending anything.

Use one random key per logical operation and persist it with your job. Supply exactly one header value of 1 to 128 visible ASCII characters, with no whitespace. Reuse that key only for the same method, concrete path, query and parsed JSON body under the same API credential. Duplicate header lines, duplicate query names on keyed writes and invalid keys return 400. The canonical fingerprint input, including method, path, query and body, is limited to 1 MiB and 32 nesting levels; nonfinite numbers are refused.

Reordered object keys and query order compare equal. Array order, value types, explicit null, omitted fields and explicit defaults remain different. Changing a request with an unexpired key returns 409 already-exists with an Idempotency-Key conflict detail. Key rotation starts a new replay namespace. For bodyless operations, send no body or an empty object as documented; keyed member removal, lock/unlock and endpoint retirement reject additional body fields.

ResponseMeaning
Aegis-Idempotency-Replayed: falseFirst successful execution with a key. Normal response body.
Aegis-Idempotency-Replayed: trueMatching completed replay with a key. Safe prior response or identity-only variant.
Header absentNo operation key was supplied, or no successful replay outcome was returned.

Completed successful operations are replayable for 24 hours from their server-recorded createdAt. At expiry, the same key may execute again. This is a deduplication window, not a deletion or storage-retention promise. Concurrent matching operations serialize; contention may still return a retryable 5xx. Authentication, scopes, rate limits and current resource guards apply on every attempt.

Links and signing secrets are not repeated on replay
A replay of link creation returns only clientId and replayed: true. Registration and rotation replays return only id and replayed: true. There is no loginUrl, expiresAt or secret in those variants. If the original response was lost, explicitly reissue a link or rotate the secret with a new operation key. Do not rotate or reissue automatically on every replay.

Other replays return the original successful body or empty 204, without applying the operation again. That body describes the earlier operation, not current state. Read the application, registrations or diagnostics to reconcile. A replay cannot bypass suspension, erasure or current link-recipient membership and lock guards. A replayed removal does not require the removed member to exist again; a retirement replay can succeed against its own retained endpoint record.

Provisioning identity without an operation key

Application identity is tenant plus externalRef when nonempty, otherwise tenant plus normalized email. Keep externalRef stable and at most 200 characters, and persist clientId. A different email on an existing reference returns 409. Repeating provisioning does not rename the company or change its intake; it can restore the original applicant membership. Without a key, link calls mint new tickets, and a repeated member removal returns 400 once the member is gone. A fresh link does not revoke earlier unused links.

A timeout or 5xx does not prove that no writes occurred. Retry a keyed operation with its same key and unchanged request within its window. Without a key, reconcile before repeating a write. Use bounded backoff and jitter; honor Retry-After on 429.

Errors

Errors contain code, message and requestId inside error, plus details for some validation failures. OPTIONS is the empty-body exception.

Response 400
{
  "error": {
    "code": "invalid-argument",
    "message": "A valid email is required.",
    "requestId": "f03b6019-aab0-4d92-b337-e4cd2f17cd91",
    "details": [{ "field": "email", "issue": "invalid" }]
  }
}
FieldTypeDescription
errorAlwaysobjectError envelope on JSON API failures.
error.codeAlwaysstringOne of the codes in the table below. Branch on code and HTTP status, not message text.
error.messageAlwaysstringHuman-readable description. Generic on server errors.
error.requestIdAlwaysstringOpaque diagnostic ID matching Aegis-Request-Id.
error.detailsConditionalobject[]Included for some validation errors; omitted on 5xx.
error.details[].fieldWithin parentstringAffected field, such as email or Idempotency-Key.
error.details[].issueWithin parentstringValidation issue, including invalid or conflict for Idempotency-Key.
Response 409: changed request with the same key
{"error":{"code":"already-exists","message":"Idempotency key was already used for another request.","requestId":"example-request-id","details":[{"field":"Idempotency-Key","issue":"conflict"}]}}

requestId matches Aegis-Request-Id. details, when present, is an array of field and issue objects; only some validation errors supply it. Do not branch on message text. Server errors omit details and use a generic message.

HTTPCodeAction
400invalid-argumentCorrect email, intake label, query or subscription parameter.
400failed-preconditionResolve intake configuration, member cap, reissue recipient or required ownership handover.
401unauthorizedCheck key format and active status; do not retry an invalid credential unchanged.
403permission-deniedCheck scope, tenant suspension and application lock. Granting and revoking access have different rules.
404not-foundUnknown route or missing/foreign resource. Application reads also hide erasure.
405method-not-allowedUse the method documented for this path. OPTIONS has no body.
409already-existsReference/email conflict, changed request with an unexpired operation key, or a link recipient changed during the operation. Reconcile and correct the conflict.
410failed-preconditionThe application was erased; do not recreate it or grant access.
429resource-exhaustedHonor Retry-After when supplied, otherwise use backoff with jitter.
5xxinternal or another published codeUse the HTTP status to decide retries; a 5xx can carry another published code. Reconcile writes before repeating them.

Rate limits and diagnostics

Budgets are 60 requests per minute per key and 240 per minute per source IP. The IP limit is applied before authentication. Coordinate workers sharing a key or egress IP and use these response headers:

HeaderMeaning
Aegis-Request-IdOpaque ID on every response emitted by the current handler, including errors and OPTIONS.
RateLimit-LimitPer-key budget, normally 60.
RateLimit-RemainingRequests remaining in that per-key window.
RateLimit-ResetSeconds until reset, not an epoch timestamp.
Retry-AfterSeconds to wait on per-key 429; matches the reset delay.

Pre-authentication IP refusals have no rate-limit or Retry-After headers. Unauthenticated responses and requests where no limiter window could be read also omit per-key headers. Missing headers do not mean unlimited requests. Log HTTP status, request ID and your own record ID, while redacting credentials, loginUrl and applicant data.

Keep application, request and event identifiers separate

IdentifierUse
externalRefYour permanent application reference. Keep it stable throughout the case.
clientIdAegis application ID. Use it in application paths and reconciliation.
Idempotency-KeyYour identifier for one write intent. Reuse it only for retries of that same operation, never for different request data.
Aegis-Request-IdServer-generated HTTP request diagnostic ID. Use it with support, not as an application identity.
Webhook id / idempotencyKeyIdentity of one event, stable across delivery attempts. Deduplicate on this value.
Information-request requestIdIdentity of an information request and its response rounds. Unrelated to the HTTP diagnostic ID.

Data visibility

decision.comment is non-null only when staff explicitly shared that comment with clients. Internal, legacy and unmarked comments return null. Rejection reasons and information-request comments/prompts follow their own applicant-facing visibility rules. Names and free text may contain personal data; these fields are not semantically scrubbed. Structured questionnaire answers, screening results and document contents are excluded from REST responses. A write key can still issue portal links with the existing applicant permissions.

Portal and staff operations

The tenant API does not approve or reject cases, override risk, run staff screening, erase applicants, cancel applications or answer information requests on an applicant's behalf. Answers, forms and uploads stay in the portal; compliance decisions stay in the dashboard. Internal Firebase callables are not tenant REST endpoints. There is no separate GET members route; membership rides on the application read.

Versioning

The path version is v1, and webhook envelopes carry apiVersion. Accept additive response fields and handle unfamiliar status or event values without treating them as approval.