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.
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.
Scope
Grants
applications:write
Provisioning, sign-in links, membership and lock/unlock.
applications:read
Application summaries, current application details, information requests and intake labels.
webhooks:manage
Webhook 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.
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 status
Client interpretation
pending
Created or awaiting staff review. Submission can leave this status unchanged.
needs_info
The applicant owes information. Read requests and direct them to the portal.
hold
The case is on hold. Never on_hold.
pending_approval
Approval proposed, awaiting a second approver.
active
Approved. There is no approved status string.
rejected
Rejected; 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.
Field
Type
Description
AuthorizationRequired
string (header)
Bearer aegis_<key-id>_<secret>. Use a server API key with the scope below.
Content-TypeRequired
string (header)
application/json.
Idempotency-KeyOptional
string (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.
emailRequired
string
Applicant email, trimmed and lowercased. Required, must contain @, maximum 320 characters.
externalRefOptional
string
Your 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.
companyNameOptional
string
Display name. Trimmed and cut to 200 characters. Defaults to email; a repeat does not rename the application.
labelIdOptional
string
Intake 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.
Current 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.
Field
Type
Description
AuthorizationRequired
string (header)
Bearer aegis_<key-id>_<secret>. Use a server API key with the scope below.
Content-TypeRequired
string (header)
application/json.
Idempotency-KeyOptional
string (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.
emailRequired
string
Applicant email, trimmed and lowercased. Required, must contain @, maximum 320 characters.
externalRefOptional
string
Your 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.
companyNameOptional
string
Display name. Trimmed and cut to 200 characters. Defaults to email; a repeat does not rename the application.
labelIdOptional
string
Intake 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.
redirectPathOptional
string
Optional landing page: /upload-documents, /status, /form-parser, /dashboard or /requests. Other values are ignored; the portal chooses the page from the application state.
Single-use credential. Redirect to this exact URL or send it privately to the intended member; never log it.
clientIdAlways
string
Permanent application identifier. Store it against your own record.
expiresAtAlways
string
RFC 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.
Identity of the resource from the completed operation.
replayedAlways on replay
boolean
Exactly 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.
Field
Type
Description
AuthorizationRequired
string (header)
Bearer aegis_<key-id>_<secret>. Use a server API key with the scope below.
limitOptional
integer (query)
Optional page size, 1 to 100, default 25. Keep unchanged with a cursor.
cursorOptional
string (query)
Opaque returned nextCursor, 1 to 32768 characters if supplied. Omit on the first page. Bound to the tenant, filters and limit.
externalRefOptional
string (query)
Exact match, 1 to 200 characters, no trimming. URL-encode the value.
statusOptional
string (query)
pending, hold, needs_info, pending_approval, active or rejected.
updatedSinceOptional
string (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>
Application summaries. Empty array when none match.
data[].clientIdWithin parent
string
Application ID.
data[].externalRefWithin parent
string | null
Your reference, if supplied at creation.
data[].companyNameWithin parent
string | null
Application display name.
data[].typeWithin parent
string | null
Corporate Client or Individual Client.
data[].statusWithin parent
string | null
pending, hold, needs_info, pending_approval, active or rejected. active means approved.
data[].createdAtWithin parent
string | null
RFC 3339 UTC application creation time.
data[].updatedAtWithin parent
string | null
RFC 3339 UTC application update time.
data[].submittedAtConditional
string | null, optional
RFC 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[].rejectionReasonConditional
string | null, optional
Customer-visible reason. Present only when status is rejected.
nextCursorAlways
string | null
Opaque token for another page. Null on the final page.
hasMoreAlways
boolean
True when another page exists. No total count is returned.
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.
Field
Type
Description
AuthorizationRequired
string (header)
Bearer aegis_<key-id>_<secret>. Use a server API key with the scope below.
clientIdRequired
path string
Application identifier returned by provisioning.
Example request
GET /v1/applications/{clientId} HTTP/1.1
Host: aegis-api.theauroraedge.com
Authorization: Bearer aegis_<key-id>_<secret>
pending, hold, needs_info, pending_approval, active or rejected. active means approved.
createdAtAlways
string | null
RFC 3339 UTC application creation time.
updatedAtAlways
string | null
RFC 3339 UTC application update time.
submittedAtConditional
string | null, optional
RFC 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.
rejectionReasonConditional
string | null, optional
Customer-visible reason. Present only when status is rejected.
decisionAlways
object | null
Latest decision, or null when none exists.
decision.actionWithin parent
string | null
Action: 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 parent
string | null
Application status before the decision.
decision.toStatusWithin parent
string | null
Application status resulting from the decision.
decision.byRoleWithin parent
string | null
Actor role. No staff email is returned.
decision.commentWithin parent
string | null
Only 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 parent
string | null
RFC 3339 UTC decision time.
openInfoRequestAlways
object | null
Current request summary. Can remain populated while staff review a responded request.
openInfoRequest.requestIdWithin parent
string | null
Information-request ID.
openInfoRequest.seqWithin parent
number | null
Request sequence within this application.
openInfoRequest.roundWithin parent
number | null
Response round within this request.
openInfoRequest.openItemsWithin parent
number | null
Items requiring applicant action.
openInfoRequest.answeredItemsWithin parent
number | null
Answered items awaiting staff review.
openInfoRequest.atWithin parent
string | null
RFC 3339 UTC summary timestamp.
membersAlways
array
All members, unpaged. Maximum 20 members.
members[].uidWithin parent
string | null
Opaque member ID; use it for removal and ownership handover.
members[].emailWithin parent
string | null
Normalized member email.
members[].roleWithin parent
string | null
applicant or teammate. This is not a staff role and does not identify the current owner after a handover.
members[].joinedAtWithin parent
string | null
RFC 3339 UTC membership creation time. Preserved on repeat addition.
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.
Field
Type
Description
AuthorizationRequired
string (header)
Bearer aegis_<key-id>_<secret>. Use a server API key with the scope below.
clientIdRequired
string (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>
All requests, unpaged, highest seq first. Empty array when none exist. No limit or cursor parameters.
data[].requestIdWithin parent
string | null
Request identifier.
data[].seqWithin parent
number | null
Request sequence within the application. Distinct from webhook data.sequence.
data[].roundWithin parent
number | null
Response round within the request.
data[].statusWithin parent
string
open, responded, closed or cancelled. Active request status is derived from its items.
data[].openItemsWithin parent
number
Count of open and reopened items requiring applicant action.
data[].answeredItemsWithin parent
number
Count of answered items awaiting staff review.
data[].commentWithin parent
string | null
Staff-written request comment visible to the applicant. Request creation accepts at most 2000 characters.
data[].createdAtWithin parent
string | null
RFC 3339 UTC timestamp, null when the corresponding action has not occurred or no timestamp is stored.
data[].updatedAtWithin parent
string | null
RFC 3339 UTC timestamp, null when the corresponding action has not occurred or no timestamp is stored.
data[].respondedAtWithin parent
string | null
RFC 3339 UTC timestamp, null when the corresponding action has not occurred or no timestamp is stored.
data[].closedAtWithin parent
string | null
RFC 3339 UTC timestamp, null when the corresponding action has not occurred or no timestamp is stored.
data[].cancelledAtWithin parent
string | null
RFC 3339 UTC timestamp, null when the corresponding action has not occurred or no timestamp is stored.
data[].itemsWithin parent
object[]
Request items and the prompts visible to the applicant. A request accepts at most 50 items.
data[].items[].itemIdWithin parent
string | null
Item identifier.
data[].items[].typeWithin parent
string | null
question, field or document.
data[].items[].promptWithin parent
string | null
Staff-written prompt, limited to 500 characters on entry. No applicant answer is returned.
data[].items[].statusWithin parent
string | null
open, 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.
Field
Type
Description
AuthorizationRequired
string (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>
Unpaged labels with an attached intake pair, sorted by order ascending. Ties preserve configured order.
data[].labelIdWithin parent
string | null
Value to send when provisioning. A null value signals a configuration problem; ask staff to correct it.
data[].nameWithin parent
string | null
Display name.
data[].orderWithin parent
number | null
Configured 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.
Field
Type
Description
AuthorizationRequired
string (header)
Bearer aegis_<key-id>_<secret>. Use a server API key with the scope below.
Content-TypeRequired
string (header)
application/json.
Idempotency-KeyOptional
string (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.
clientIdRequired
string (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.
emailOptional
string | null
Optional 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.
redirectPathOptional
string
Optional landing page: /upload-documents, /status, /form-parser, /dashboard or /requests. Other values are ignored; the portal chooses the page from the application state.
Single-use credential. Redirect to this exact URL or send it privately to the intended member; never log it.
clientIdAlways
string
Permanent application identifier. Store it against your own record.
expiresAtAlways
string
RFC 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.
Identity of the resource from the completed operation.
replayedAlways on replay
boolean
Exactly 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.
Field
Type
Description
AuthorizationRequired
string (header)
Bearer aegis_<key-id>_<secret>. Use a server API key with the scope below.
Content-TypeRequired
string (header)
application/json.
Idempotency-KeyOptional
string (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.
clientIdRequired
string (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.
emailRequired
string
Member email, trimmed and lowercased, containing @ and at most 320 characters.
Opaque member ID; use it for removal and ownership handover.
emailAlways
string | null
Normalized member email.
roleAlways
string | null
applicant or teammate. This is not a staff role and does not identify the current owner after a handover.
joinedAtAlways
string | null
RFC 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.
Field
Type
Description
AuthorizationRequired
string (header)
Bearer aegis_<key-id>_<secret>. Use a server API key with the scope below.
Idempotency-KeyOptional
string (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.
clientIdRequired
string (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.
uidRequired
path string
Member ID from the application members array.
newOwnerUidConditional
query string, conditional
Required 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.
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.
Field
Type
Description
AuthorizationRequired
string (header)
Bearer aegis_<key-id>_<secret>. Use a server API key with the scope below.
Content-TypeRequired
string (header)
application/json.
Idempotency-KeyOptional
string (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.
clientIdRequired
string (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.
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.
Field
Type
Description
AuthorizationRequired
string (header)
Bearer aegis_<key-id>_<secret>. Use a server API key with the scope below.
Content-TypeRequired
string (header)
application/json.
Idempotency-KeyOptional
string (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.
clientIdRequired
string (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.
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.
Response
Meaning
Aegis-Idempotency-Replayed: false
First successful execution with a key. Normal response body.
Aegis-Idempotency-Replayed: true
Matching completed replay with a key. Safe prior response or identity-only variant.
Header absent
No 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.
One of the codes in the table below. Branch on code and HTTP status, not message text.
error.messageAlways
string
Human-readable description. Generic on server errors.
error.requestIdAlways
string
Opaque diagnostic ID matching Aegis-Request-Id.
error.detailsConditional
object[]
Included for some validation errors; omitted on 5xx.
error.details[].fieldWithin parent
string
Affected field, such as email or Idempotency-Key.
error.details[].issueWithin parent
string
Validation 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.
HTTP
Code
Action
400
invalid-argument
Correct email, intake label, query or subscription parameter.
400
failed-precondition
Resolve intake configuration, member cap, reissue recipient or required ownership handover.
401
unauthorized
Check key format and active status; do not retry an invalid credential unchanged.
403
permission-denied
Check scope, tenant suspension and application lock. Granting and revoking access have different rules.
404
not-found
Unknown route or missing/foreign resource. Application reads also hide erasure.
405
method-not-allowed
Use the method documented for this path. OPTIONS has no body.
409
already-exists
Reference/email conflict, changed request with an unexpired operation key, or a link recipient changed during the operation. Reconcile and correct the conflict.
410
failed-precondition
The application was erased; do not recreate it or grant access.
429
resource-exhausted
Honor Retry-After when supplied, otherwise use backoff with jitter.
5xx
internal or another published code
Use 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:
Header
Meaning
Aegis-Request-Id
Opaque ID on every response emitted by the current handler, including errors and OPTIONS.
RateLimit-Limit
Per-key budget, normally 60.
RateLimit-Remaining
Requests remaining in that per-key window.
RateLimit-Reset
Seconds until reset, not an epoch timestamp.
Retry-After
Seconds 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
Identifier
Use
externalRef
Your permanent application reference. Keep it stable throughout the case.
clientId
Aegis application ID. Use it in application paths and reconciliation.
Idempotency-Key
Your identifier for one write intent. Reuse it only for retries of that same operation, never for different request data.
Aegis-Request-Id
Server-generated HTTP request diagnostic ID. Use it with support, not as an application identity.
Webhook id / idempotencyKey
Identity of one event, stable across delivery attempts. Deduplicate on this value.
Information-request requestId
Identity 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.