Current documentation. Version and compatibility notes.

Downloads browser API reference

Signed-in distribution, authorized downloads and time-limited signed links.

Workflow guide · Download OpenAPI JSON

API origin
https://download.appportal.io
API version
1.0.0
Reference source
8bda8e8302d4ea5bd005ef1132f7267e82e6337c
Download SHA-256
526a485d24675b61c66381166ede29430d48725975fd6ab7312044fd13f41ee1

Relative server URLs in this contract refer to the API origin above. Use that origin when importing the document into an API client.

Authentication

browserSession
Opaque, Secure, HttpOnly, SameSite browser session. Development uses the same name without the __Host- prefix.

__Host-AppPortal.Download.Session (cookie)

csrfToken
Required together with the matching non-HttpOnly CSRF cookie for authenticated mutation requests.

X-AppPortal-CSRF (header)

signedDownload
Scoped HMAC signature from a time-limited signed link; the URL also carries the signed expiry and artifact scope.

signature (query)

Credentials stay with their intended audience. A browser session, SDK key, upload key and Automation credential grant different access.

Operations

GET/api/download/artifacts/{artifactId}/content

Download the signed artifact bytes

Use the complete server-returned URL unchanged; scope headers cannot retarget it. Signature binds artifact, account/app/environment/target, expiry and purpose. Current policy is checked before bytes begin; non-owner member links also recheck signing readiness. Content comes from uploaded bytes, not registered metadata. Transfers are metered observations, not a new entitlement or a promised monetary charge.

Access: signedDownload

Opaque server-minted HMAC URL; current account policy remains enforced

Parameters

artifactId (path, required)
Exact stored artifact identity, not an authorization grant.
{
  "type": "string"
}
tenant (query, optional)
Opaque server-minted signed URL component; preserve unchanged. New URLs include the complete scope; legacy scope-less content lookup remains distinct from a scope grant.
{
  "type": "string"
}
app (query, optional)
Opaque server-minted signed URL component; preserve unchanged. New URLs include the complete scope; legacy scope-less content lookup remains distinct from a scope grant.
{
  "type": "string"
}
environment (query, optional)
Opaque server-minted signed URL component; preserve unchanged. New URLs include the complete scope; legacy scope-less content lookup remains distinct from a scope grant.
{
  "type": "string"
}
target (query, optional)
Opaque server-minted signed URL component; preserve unchanged. New URLs include the complete scope; legacy scope-less content lookup remains distinct from a scope grant.
{
  "type": "string"
}
expires (query, required)
Server-minted Unix expiry seconds, covered by the signature.
{
  "type": "string"
}
signature (query, required)
Opaque server-minted signed URL component; preserve unchanged. New URLs include the complete scope; legacy scope-less content lookup remains distinct from a scope grant.
{
  "type": "string"
}
distribution (query, optional)
Optional server-minted HMAC-bound provenance. selected requires the matching channel; other values have no channel. Legacy URLs can omit both. Preserve the complete returned tuple.
{
  "type": "string",
  "enum": [
    "selected",
    "unattributed",
    "owner",
    "not-applicable"
  ]
}
channel (query, optional)
Opaque server-minted selected channel, distinct from the member request's channelId selector. Changing/removing signed provenance invalidates the URL.
{
  "type": "string",
  "minLength": 1,
  "maxLength": 200,
  "pattern": "^[!-~]+(?![\\s\\S])"
}
purpose (query, optional)
Optional signed owner purpose; adding/changing it invalidates a member signature.
{
  "type": "string"
}

Responses

200
Actual artifact stream; APK uses application/vnd.android.package-archive, other kinds retain metadata content type.
{
  "*/*": {
    "schema": {
      "type": "string",
      "format": "binary"
    }
  }
}
401
Missing, invalid, changed-purpose or expired signed scope/token.
404
Scoped artifact or uploaded bytes do not exist.
409
Current signing/distribution readiness is not satisfied.
{
  "application/json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsNativeError"
    }
  }
}
423
Current policy denies or cannot verify artifact download.
{
  "application/json": {
    "schema": {
      "$ref": "#/components/schemas/TenantOperationDeniedResponse"
    }
  }
}
429
The organization reached its request limit. Retry after the indicated delay.

Response headers

{
  "Retry-After": {
    "schema": {
      "type": "string"
    },
    "description": "Delay in seconds before retrying."
  },
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
500
Existing dependency failure; inspect its machine code. Transport failures can be bodyless.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
503
Download policy or request admission is temporarily unavailable.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/json": {
    "schema": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/TenantOperationDeniedResponse"
        },
        {
          "$ref": "#/components/schemas/DownloadsStorageBusy"
        }
      ]
    }
  },
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}

Link to this operation

GET/api/download/artifacts/{artifactId}/install-manifest.plist

Read the signed internal IPA install manifest

Use the complete server-returned install URL. Requires supported ready ad-hoc/enterprise IPA, approved HTTPS public origin and install-manifest purpose. Returns XML property-list bytes with encoded artifact metadata; does not prove device eligibility or cryptographic trust. Cache-Control:no-store and Referrer-Policy:no-referrer.

Access: signedDownload

Opaque server-minted HMAC URL; current account policy remains enforced

Parameters

artifactId (path, required)
Exact stored artifact identity, not an authorization grant.
{
  "type": "string"
}
tenant (query, required)
Opaque server-minted signed URL component; preserve unchanged. New URLs include the complete scope; legacy scope-less content lookup remains distinct from a scope grant.
{
  "type": "string"
}
app (query, required)
Opaque server-minted signed URL component; preserve unchanged. New URLs include the complete scope; legacy scope-less content lookup remains distinct from a scope grant.
{
  "type": "string"
}
environment (query, optional)
Opaque server-minted signed URL component; preserve unchanged. New URLs include the complete scope; legacy scope-less content lookup remains distinct from a scope grant.
{
  "type": "string"
}
target (query, optional)
Opaque server-minted signed URL component; preserve unchanged. New URLs include the complete scope; legacy scope-less content lookup remains distinct from a scope grant.
{
  "type": "string"
}
expires (query, required)
Server-minted Unix expiry seconds, covered by the signature.
{
  "type": "string"
}
signature (query, required)
Opaque server-minted signed URL component; preserve unchanged. New URLs include the complete scope; legacy scope-less content lookup remains distinct from a scope grant.
{
  "type": "string"
}
distribution (query, optional)
Optional server-minted HMAC-bound provenance. selected requires the matching channel; other values have no channel. Legacy URLs can omit both. Preserve the complete returned tuple.
{
  "type": "string",
  "enum": [
    "selected",
    "unattributed",
    "owner",
    "not-applicable"
  ]
}
channel (query, optional)
Opaque server-minted selected channel, distinct from the member request's channelId selector. Changing/removing signed provenance invalidates the URL.
{
  "type": "string",
  "minLength": 1,
  "maxLength": 200,
  "pattern": "^[!-~]+(?![\\s\\S])"
}
purpose (query, required)
Exact signed install-manifest purpose.
{
  "const": "install-manifest"
}

Responses

200
Actual UTF-8 XML plist.

Response headers

{
  "Cache-Control": {
    "schema": {
      "type": "string"
    },
    "description": "no-store"
  },
  "Referrer-Policy": {
    "schema": {
      "type": "string"
    },
    "description": "no-referrer"
  }
}
{
  "text/xml": {
    "schema": {
      "type": "string"
    }
  }
}
401
Missing, invalid, changed-purpose or expired signed scope/token.
404
Scoped artifact or uploaded bytes do not exist.
409
Current signing/distribution readiness is not satisfied.
{
  "application/json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsNativeError"
    }
  }
}
423
Current policy denies or cannot verify installation.
429
The organization reached its request limit. Retry after the indicated delay.

Response headers

{
  "Retry-After": {
    "schema": {
      "type": "string"
    },
    "description": "Delay in seconds before retrying."
  },
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
500
Existing dependency failure; inspect its machine code. Transport failures can be bodyless.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
503
Download policy or request admission is temporarily unavailable.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  },
  "application/json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsStorageBusy"
    }
  }
}

Link to this operation

GET/api/download/branding/{tenantId}/logo

Read published organization branding bytes

Access: No authentication credential.

Anonymous branding read; no channel access grant

Parameters

tenantId (path, required)
Organization whose published logo is requested.
{
  "type": "string"
}

Responses

200
Stored logo bytes with their stored content type.

Response headers

{
  "Cache-Control": {
    "schema": {
      "type": "string"
    },
    "description": "public, max-age=300"
  },
  "X-Content-Type-Options": {
    "schema": {
      "type": "string"
    },
    "description": "nosniff"
  }
}
{
  "*/*": {
    "schema": {
      "type": "string",
      "format": "binary"
    }
  }
}
404
No published logo is stored.
500
Existing dependency failure; inspect its machine code. Transport failures can be bodyless.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
503
Existing dependency failure; inspect its machine code. Transport failures can be bodyless.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  },
  "application/json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsStorageBusy"
    }
  }
}

Link to this operation

POST/api/download/me/artifacts/{artifactId}/signed-link

Mint a signed link for an accessible ready artifact

No request body or required idempotency header. The server derives account/app scope from the stored artifact, rechecks membership and signing readiness, audits issuance and mints a currently fifteen-minute HMAC URL. Existing account holds can deny it. A URL does not publish an artifact or prove native installation eligibility. Optional channel selection captures validated distribution provenance at issuance. Transfer evidence does not establish device installation. Cross-site unsafe requests are rejected. If an existing Downloads session cookie resolves, its matching readable CSRF cookie/header is required even on an otherwise anonymous operation.

Access: browserSession + csrfToken

Current channel membership, denials and account DownloadExistingArtifact policy

Parameters

artifactId (path, required)
Exact stored artifact identity, not an authorization grant.
{
  "type": "string"
}
channelId (query, optional)
Optional single already-trimmed printable ASCII channel identity. Repeated/blank/invalid values return 400; current exact artifact/app/channel membership is independently required. Omission preserves legacy authorized access with unattributed provenance, never a guessed group.
{
  "type": "string",
  "minLength": 1,
  "maxLength": 200,
  "pattern": "^[!-~]+(?![\\s\\S])"
}

Responses

200
Actual owning workflow result.
{
  "application/json": {
    "schema": {
      "$ref": "#/components/schemas/SignedDownloadLinkResponse"
    }
  }
}
400
download_request_invalid: channelId must be one already-trimmed printable ASCII value of 1-200 characters.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
401
A valid Downloads session is required; authentication may be bodyless.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
403
Current account/membership/channel authority is required.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
404
Artifact is absent from the selected account.
409
Artifact signing/distribution readiness is not satisfied.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
423
Current account operational policy denies this operation.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
500
Existing dependency failure; inspect its machine code. Transport failures can be bodyless.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
503
Current source/provenance authority is unavailable. An explicit selection with an unsupported channel resolver fails closed with a potentially bodyless 503; it does not become unattributed success.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  },
  "application/json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsStorageBusy"
    }
  }
}

Link to this operation

GET/api/download/me/downloads

List currently accessible distribution channels

The server resolves current team membership, account/app denials and release-channel access. Distribution-unready IPA/Windows artifacts are filtered. Explicit account denial can return a real empty channel set; dependency failures do not become empty success. Browser roles/app selectors do not grant a channel. Legacy compatibility reads accept no query parameters and must be whole: more than 100 channels or artifacts in any channel returns 400 pagination_required, never silent truncation. Use the paged member routes.

Access: browserSession

Authenticated account and current direct/team channel membership

Responses

200
Actual owning workflow result.
{
  "application/json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadAccessView"
    }
  }
}
400
pagination_required: the legacy view exceeds its bounded whole-result capacity, or download_page_invalid for any query. Use /me/downloads/page and each channel artifacts/page.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
401
A valid Downloads session is required; authentication may be bodyless.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
403
Current account/membership/channel authority is required.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
500
Existing dependency failure; inspect its machine code. Transport failures can be bodyless.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
503
Existing dependency failure; inspect its machine code. Transport failures can be bodyless.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  },
  "application/json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsStorageBusy"
    }
  }
}

Link to this operation

GET/api/download/me/downloads/channels/{channelId}/artifacts/page

Page ready artifacts in one currently accessible channel

Exact lower-case query keys only; reject unknown, repeated, blank, untrimmed or control-containing values. limit defaults to 25 and accepts 1..100 with at most 3 decoded digits, not an offset. cursor is opaque and bound to subject, account, collection, limit, selected IDs, current grants, source and ordering; preserve the original selection. Authority and source are checked again after reading. Changed grants/current authority deny 403, source ownership change returns 503, and invalid continuation returns400. totalCount is explicitly null, never inferred as 0. The path channel must be currently accessible. Only Uploaded artifacts are listed; WindowsZip is excluded and IPA needs current signed iOS analysis. This filtering is not proof of native installation eligibility. Results order by release time then binding ID descending. artifactId filters this channel; optional query channelId is only a continuation-bound selection value and does not replace the path.

Access: browserSession

Current authenticated member and trusted Identity direct/team grants; Portal organization membership and Dashboard authoring roles are not required

Parameters

channelId (path, required)
Exact currently accessible channel. This is separate from the optional same-named query selection.
{
  "type": "string",
  "minLength": 1,
  "x-appportal-max-utf16-code-units": 512
}
limit (query, optional)
One invariant unsigned integer of at most three decoded digits. Repeated, signed, whitespace or out-of-range values are 400; the handler does not clamp.
{
  "type": "integer",
  "minimum": 1,
  "maximum": 100,
  "default": 25
}
cursor (query, optional)
Single opaque continuation; preserve unchanged. No client-decoded offsets or invented TTL. Already trimmed, nonblank and control-free.
{
  "type": "string",
  "minLength": 1,
  "x-appportal-max-utf16-code-units": 8192
}
channelId (query, optional)
Optional selection bound into cursor scope; does not replace/filter the path channel. Already trimmed, nonblank and control-free.
{
  "type": "string",
  "minLength": 1,
  "x-appportal-max-utf16-code-units": 512
}
artifactId (query, optional)
Optional exact artifact filter within the path channel, also bound into cursor scope. Already trimmed, nonblank and control-free.
{
  "type": "string",
  "minLength": 1,
  "x-appportal-max-utf16-code-units": 512
}

Responses

200
Actual owning workflow result.

Response headers

{
  "Cache-Control": {
    "schema": {
      "type": "string"
    },
    "description": "no-store, private"
  }
}
{
  "application/json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsMemberArtifactPage"
    }
  }
}
400
download_page_invalid: invalid/repeated/unknown query, malformed cursor, changed continuation scope or invalid path selector. No caller cursor or private selection is reflected.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
401
A valid Downloads browser session is required; authentication can be bodyless.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
403
download_page_access_denied: current account/member/team or deny/source-grant authority cannot be verified. Refresh/reconcile authority rather than treating it as an empty page.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
404
resource_not_found: owning-source resource absence; an unavailable artifact-page path channel is404, while an unmatched channel-list filter is a valid empty page.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
500
Existing dependency failure; inspect its machine code. Transport failures can be bodyless.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
503
download_page_unavailable: current source/dependency is unavailable. Retry the same page; no empty result or new grant is inferred.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}

Link to this operation

GET/api/download/me/downloads/page

Page currently accessible distribution channels

Exact lower-case query keys only; reject unknown, repeated, blank, untrimmed or control-containing values. limit defaults to 25 and accepts 1..100 with at most 3 decoded digits, not an offset. cursor is opaque and bound to subject, account, collection, limit, selected IDs, current grants, source and ordering; preserve the original selection. Authority and source are checked again after reading. Changed grants/current authority deny 403, source ownership change returns 503, and invalid continuation returns400. totalCount is explicitly null, never inferred as 0. Channels order by app ID, rank and channel ID with ordinal database collation. channelId optionally filters the list. Optional artifactId is bound into continuation scope but does not filter this channel collection. An authorized empty items array is valid; unavailable authority is not an empty success.

Access: browserSession

Current authenticated member and trusted Identity direct/team grants; Portal organization membership and Dashboard authoring roles are not required

Parameters

limit (query, optional)
One invariant unsigned integer of at most three decoded digits. Repeated, signed, whitespace or out-of-range values are 400; the handler does not clamp.
{
  "type": "integer",
  "minimum": 1,
  "maximum": 100,
  "default": 25
}
cursor (query, optional)
Single opaque continuation; preserve unchanged. No client-decoded offsets or invented TTL. Already trimmed, nonblank and control-free.
{
  "type": "string",
  "minLength": 1,
  "x-appportal-max-utf16-code-units": 8192
}
channelId (query, optional)
Optional exact channel filter, also bound into cursor scope. Already trimmed, nonblank and control-free.
{
  "type": "string",
  "minLength": 1,
  "x-appportal-max-utf16-code-units": 512
}
artifactId (query, optional)
Optional continuation-bound selection; does not filter this channel list. Already trimmed, nonblank and control-free.
{
  "type": "string",
  "minLength": 1,
  "x-appportal-max-utf16-code-units": 512
}

Responses

200
Actual owning workflow result.

Response headers

{
  "Cache-Control": {
    "schema": {
      "type": "string"
    },
    "description": "no-store, private"
  }
}
{
  "application/json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsMemberChannelPage"
    }
  }
}
400
download_page_invalid: invalid/repeated/unknown query, malformed cursor, changed continuation scope or invalid path selector. No caller cursor or private selection is reflected.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
401
A valid Downloads browser session is required; authentication can be bodyless.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
403
download_page_access_denied: current account/member/team or deny/source-grant authority cannot be verified. Refresh/reconcile authority rather than treating it as an empty page.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
404
resource_not_found: owning-source resource absence; an unavailable artifact-page path channel is404, while an unmatched channel-list filter is a valid empty page.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
500
Existing dependency failure; inspect its machine code. Transport failures can be bodyless.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
503
download_page_unavailable: current source/dependency is unavailable. Retry the same page; no empty result or new grant is inferred.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}

Link to this operation

POST/api/identity/auth/external/{provider}/signup-start

Begin explicit provider signup

Explicit current Terms acceptance. Read the returned immutable version. The server-issued presentation is bound to its signup surface and expires after ten minutes. Preserve presentationToken, supply a nonempty actionId, and set accepted to true only after the user agrees. Missing or invalid proof returns 400, stale or reused proof returns 409, and unavailable signing authority returns 503. The browser callback destination is assigned by the BFF. Cross-site unsafe requests are rejected. If an existing Downloads session cookie resolves, its matching readable CSRF cookie/header is required even on an otherwise anonymous operation.

Access: browserSession + csrfToken

Anonymous, explicit current-Terms signup with provider verification

Parameters

provider (path, required)
Supported login provider; names are normalized to lower case before validation.
{
  "type": "string",
  "x-appportal-canonical-values": [
    "microsoft",
    "google",
    "github"
  ]
}

Request body

{
  "required": true,
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/SocialSignupStartRequest"
      }
    }
  }
}

Responses

200
Actual owning workflow result.

Response headers

{
  "Cache-Control": {
    "schema": {
      "type": "string",
      "const": "private, no-store"
    }
  }
}
{
  "application/json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsAuthorizeUrl"
    }
  }
}
400
Invalid JSON or domain request; binding can be bodyless.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
403
Cross-site browser mutation, or an existing cookie without its matching CSRF nonce, is rejected before execution.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
404
Unsupported sign-in provider.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
409
Signup Terms changed; obtain the current presentation.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
413
payload_too_large: signup request exceeds 12,288 bytes. A browser navigation may receive an empty response.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
415
Send the signup request as JSON.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
500
Existing dependency failure; inspect its machine code. Transport failures can be bodyless.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
502
Identity returned an invalid provider authorization URL.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
503
Existing dependency failure; inspect its machine code. Transport failures can be bodyless.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}

Link to this operation

GET/api/identity/auth/external/{provider}/start

Begin provider sign-in

Returns JSON authorizeUrl, not a redirect. Microsoft, Google and GitHub are the supported provider names. The BFF chooses its own fixed completion URL and stores an HttpOnly flow cookie; browser-supplied return destinations are not forwarded. Invalid provider is 404 and unavailable/unconfigured provider is an existing error.

Access: No authentication credential.

Provider configuration and cookie-bound single-use social flow

Parameters

provider (path, required)
Supported login provider; names are normalized to lower case before validation.
{
  "type": "string",
  "x-appportal-canonical-values": [
    "microsoft",
    "google",
    "github"
  ]
}

Responses

200
Actual owning workflow result.
{
  "application/json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsAuthorizeUrl"
    }
  }
}
400
Existing route-specific domain failure; inspect its machine code.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
404
Unsupported provider.
500
Existing dependency failure; inspect its machine code. Transport failures can be bodyless.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
503
Existing dependency failure; inspect its machine code. Transport failures can be bodyless.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}

Link to this operation

GET/api/identity/auth/legal/history

Read own account acceptance history

Returns recorded policy acceptances newest first by actedAt, then evidenceId. Reuse the cursor with the same account, scope and page size. Invalid, repeated or unknown parameters return 400. The total is unknown and an empty page establishes no acceptance. History or integrity failures return 503. No caller subject or organization selector; Downloads exposes only own account history.

Access: browserSession

Current authenticated subject only; current account evidence authority independently rechecked

Parameters

limit (query, optional)
One invariant unsigned decimal page size; not clamped.
{
  "type": "integer",
  "minimum": 1,
  "maximum": 50,
  "default": 25
}
cursor (query, optional)
One unchanged protected cursor, already trimmed and control-free; no cursor grants authority.
{
  "type": "string",
  "minLength": 1,
  "maxLength": 4096
}

Responses

200
Actual owning workflow result.

Response headers

{
  "Cache-Control": {
    "schema": {
      "type": "string",
      "const": "private, no-store"
    }
  }
}
{
  "application/json": {
    "schema": {
      "$ref": "#/components/schemas/PolicyAcceptanceHistoryPage"
    }
  }
}
400
legal_history_selection_invalid or legal_history_cursor_invalid.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
401
A valid Downloads session is required; authentication may be bodyless.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
403
Current account/membership/channel authority is required.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
500
Existing dependency failure; inspect its machine code. Transport failures can be bodyless.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
503
Existing dependency failure; inspect its machine code. Transport failures can be bodyless.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}

Link to this operation

GET/api/identity/auth/legal/policies

Read published policy revisions

PublishedPolicy/Notice descriptors only. No query accepted; extra query400 legal_history_selection_invalid.

Access: browserSession

Public catalog; no acceptance or admission grant

Responses

200
Actual owning workflow result.

Response headers

{
  "Cache-Control": {
    "schema": {
      "type": "string",
      "const": "private, no-store"
    }
  }
}
{
  "application/json": {
    "schema": {
      "$ref": "#/components/schemas/PublishedPolicyRevisions"
    }
  }
}
400
legal_history_selection_invalid: no query accepted.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
500
Existing dependency failure; inspect its machine code. Transport failures can be bodyless.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
503
Existing dependency failure; inspect its machine code. Transport failures can be bodyless.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}

Link to this operation

GET/api/identity/auth/legal/policies/{revisionId}

Read exact archived policy text

No query accepted. Exact trimmed/control-free revisionId<=128; revisionId is policyKey:sha256. Returns retained UTF-8 content; missing/unpublished404 legal_revision_not_found, invalid400 legal_revision_invalid, integrity/dependency503. ETag is quoted sha256 and X-Policy-SHA256 is the same hash.

Access: browserSession

Public retained PublishedPolicy/Notice bytes; no account grant

Parameters

revisionId (path, required)
Exact immutable revision identity.
{
  "type": "string",
  "minLength": 1,
  "maxLength": 128
}

Responses

200
Exact archived UTF-8 policy bytes.

Response headers

{
  "ETag": {
    "schema": {
      "type": "string"
    },
    "description": "Quoted SHA-256."
  },
  "X-Policy-SHA256": {
    "schema": {
      "type": "string"
    },
    "description": "Exact content SHA-256."
  },
  "Cache-Control": {
    "schema": {
      "type": "string",
      "const": "private, no-store"
    }
  }
}
{
  "text/plain; charset=utf-8": {
    "schema": {
      "type": "string"
    }
  }
}
400
legal_revision_invalid or legal_history_selection_invalid.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
404
legal_revision_not_found: absent or not PublishedPolicy/Notice.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
500
Existing dependency failure; inspect its machine code. Transport failures can be bodyless.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
503
Existing dependency failure; inspect its machine code. Transport failures can be bodyless.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}

Link to this operation

GET/api/identity/auth/legal/signup-presentation

Read current signup Terms

Explicit current Terms acceptance. Read the returned immutable version. The server-issued presentation is bound to its signup surface and expires after ten minutes. Preserve presentationToken, supply a nonempty actionId, and set accepted to true only after the user agrees. Missing or invalid proof returns 400, stale or reused proof returns 409, and unavailable signing authority returns 503.

Access: browserSession

Public Terms presentation; no user creation or consent

Parameters

surface (query, required)
Exactly one supported signup surface.
{
  "type": "string",
  "enum": [
    "LocalSignup",
    "SocialSignup",
    "InvitationLocalSignup",
    "InvitationSocialSignup"
  ]
}

Responses

200
Actual owning workflow result.

Response headers

{
  "Cache-Control": {
    "schema": {
      "type": "string",
      "const": "private, no-store"
    }
  }
}
{
  "application/json": {
    "schema": {
      "$ref": "#/components/schemas/SignupTermsPresentationResponse"
    }
  }
}
500
Existing dependency failure; inspect its machine code. Transport failures can be bodyless.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
503
Existing dependency failure; inspect its machine code. Transport failures can be bodyless.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}

Link to this operation

POST/api/identity/auth/login

Sign in using the Downloads browser session

Credentials are exchanged server-side. Only the closed session summary reaches the browser; HttpOnly session and readable CSRF cookies are issued. An existing cookie requires a matching CSRF nonce. A malformed successful Identity token response is 502, not arbitrary upstream success JSON. Cross-site unsafe requests are rejected. If an existing Downloads session cookie resolves, its matching readable CSRF cookie/header is required even on an otherwise anonymous operation.

Access: No authentication credential.

Local credentials; same-origin browser boundary

Parameters

X-AppPortal-CSRF (header, optional)
Required when an existing Downloads session cookie resolves; must match its readable CSRF cookie. Anonymous requests without a session do not require a nonce. Cross-site unsafe requests remain denied.
{
  "type": "string"
}

Request body

{
  "required": true,
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/LoginRequest"
      }
    }
  }
}

Responses

200
Actual owning workflow result.
{
  "application/json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsSessionSummary"
    }
  }
}
400
Invalid JSON or domain request; binding can be bodyless.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
401
Existing route-specific domain failure; inspect its machine code.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
403
Cross-site browser mutation, or an existing cookie without its matching CSRF nonce, is rejected before execution.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
415
Existing JSON binder/media-type rejection before execution.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
500
Existing dependency failure; inspect its machine code. Transport failures can be bodyless.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
502
identity_sign_in_response_invalid: successful upstream Identity token response was malformed.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
503
Existing dependency failure; inspect its machine code. Transport failures can be bodyless.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}

Link to this operation

POST/api/identity/auth/logout

Sign out of the Downloads browser session

No browser request body. The server revokes the retained session/refresh authority and deletes its cookies. A delayed loser does not replace or delete a winning rotated session's cookies. A missing session still completes with 204; raw refresh tokens are not accepted as a browser contract. Cross-site unsafe requests are rejected. If an existing Downloads session cookie resolves, its matching readable CSRF cookie/header is required even on an otherwise anonymous operation.

Access: No authentication credential.

Current cookie when available; matching CSRF for an existing session

Parameters

X-AppPortal-CSRF (header, optional)
Required when an existing Downloads session cookie resolves; must match its readable CSRF cookie. Anonymous requests without a session do not require a nonce. Cross-site unsafe requests remain denied.
{
  "type": "string"
}

Responses

204
Signed out; no response body.
403
Cross-site browser mutation, or an existing cookie without its matching CSRF nonce, is rejected before execution.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
500
Existing dependency failure; inspect its machine code. Transport failures can be bodyless.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
503
Existing dependency failure; inspect its machine code. Transport failures can be bodyless.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}

Link to this operation

GET/api/identity/auth/me

Read the current sanitized account profile

The narrow BFF forwards the authenticated Identity /auth/me projection. Organization-less accounts are valid. Membership/access state is current source evidence, not a new download entitlement. An unavailable Identity transport can return bodyless 503.

Access: browserSession

Current signed-in account; profile remains readable while waitlisted

Responses

200
Actual owning workflow result.
{
  "application/json": {
    "schema": {
      "$ref": "#/components/schemas/AuthenticatedUser"
    }
  }
}
401
A valid Downloads session is required; authentication may be bodyless.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
403
Current account/membership/channel authority is required.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
500
Existing dependency failure; inspect its machine code. Transport failures can be bodyless.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
503
Existing dependency failure; inspect its machine code. Transport failures can be bodyless.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}

Link to this operation

POST/api/identity/auth/organizations/claim-presentation

Present organization claim documents

Presents documents bound to the proposed name/slug without creating an organization, accepting Terms or granting authority. Unknown request members are rejected by the owning DTO. No Idempotency-Key is required for this presentation. Existing claim/admission failures remain problem details. Cross-site unsafe requests are rejected. If an existing Downloads session cookie resolves, its matching readable CSRF cookie/header is required even on an otherwise anonymous operation.

Access: browserSession + csrfToken

Current signed-in account; admission/brand/claim authority remains server-owned

Request body

{
  "required": true,
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/OrganizationClaimPresentationRequest"
      }
    }
  }
}

Responses

200
Actual owning workflow result.

Response headers

{
  "Cache-Control": {
    "schema": {
      "type": "string"
    },
    "description": "private, no-store"
  }
}
{
  "application/json": {
    "schema": {
      "$ref": "#/components/schemas/OrganizationClaimPresentation"
    }
  }
}
400
Invalid JSON or domain request; binding can be bodyless.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
401
A valid Downloads session is required; authentication may be bodyless.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
403
Current account/membership/channel authority is required.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
415
Existing JSON binder/media-type rejection before execution.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
500
Existing dependency failure; inspect its machine code. Transport failures can be bodyless.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
503
Existing dependency failure; inspect its machine code. Transport failures can be bodyless.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}

Link to this operation

GET/api/identity/auth/organizations/claims

Read this account's organization claim outcomes

Reconcile the original claim using own-account history. Pending/replayed outcomes do not prove current account authority. The BFF preserves the original key rather than joining repeated values or inventing a new command identity.

Access: browserSession

Current signed-in account; read-only own claim evidence

Parameters

slug (query, optional)
Optional owning-service slug filter.
{
  "type": "string"
}
Idempotency-Key (header, optional)
Optional single bounded original claim key. Repeated values are rejected before forwarding; this GET does not create a command.
{
  "type": "string",
  "x-appportal-trimmed-max-length": 200
}

Responses

200
Own claim outcomes, not current membership grants.

Response headers

{
  "Cache-Control": {
    "schema": {
      "type": "string"
    },
    "description": "private, no-store"
  }
}
{
  "application/json": {
    "schema": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/OrganizationClaimStatus"
      }
    }
  }
}
400
Existing route-specific domain failure; inspect its machine code.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
401
A valid Downloads session is required; authentication may be bodyless.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
403
Current account/membership/channel authority is required.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
500
Existing dependency failure; inspect its machine code. Transport failures can be bodyless.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
503
Existing dependency failure; inspect its machine code. Transport failures can be bodyless.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}

Link to this operation

POST/api/identity/auth/register

Create a local account

Creates a global user with zero memberships and an organization-less opaque session. No account/workspace, channel, offering or download entitlement is inferred from signup. LocalSignup agreement is required. Explicit current Terms acceptance. Read the returned immutable version. The server-issued presentation is bound to its signup surface and expires after ten minutes. Preserve presentationToken, supply a nonempty actionId, and set accepted to true only after the user agrees. Missing or invalid proof returns 400, stale or reused proof returns 409, and unavailable signing authority returns 503. Cross-site unsafe requests are rejected. If an existing Downloads session cookie resolves, its matching readable CSRF cookie/header is required even on an otherwise anonymous operation.

Access: No authentication credential.

Valid local credentials

Parameters

X-AppPortal-CSRF (header, optional)
Required when an existing Downloads session cookie resolves; must match its readable CSRF cookie. Anonymous requests without a session do not require a nonce. Cross-site unsafe requests remain denied.
{
  "type": "string"
}

Request body

{
  "required": true,
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/RegisterRequest"
      }
    }
  }
}

Responses

200
Actual owning workflow result.
{
  "application/json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsSessionSummary"
    }
  }
}
400
Invalid JSON or domain request; binding can be bodyless.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
403
Cross-site browser mutation, or an existing cookie without its matching CSRF nonce, is rejected before execution.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
409
Existing route-specific domain failure; inspect its machine code.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
415
Existing JSON binder/media-type rejection before execution.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
500
Existing dependency failure; inspect its machine code. Transport failures can be bodyless.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
502
identity_sign_in_response_invalid: successful upstream Identity token response was malformed.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
503
Existing dependency failure; inspect its machine code. Transport failures can be bodyless.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}

Link to this operation

GET/api/identity/auth/social/complete

Complete the cookie-bound social login flow

Completes existing sign-in or redirects a verified new account to /signup/terms. The BFF checks the matching provider flow cookie.

Access: No authentication credential.

Matching server-issued social flow cookie and one-use login grant

Parameters

code (query, optional)
Opaque callback value; never author, log or reuse a provider/login grant.
{
  "type": "string"
}
flow (query, optional)
Opaque callback value; never author, log or reuse a provider/login grant.
{
  "type": "string"
}
error (query, optional)
Opaque callback value; never author, log or reuse a provider/login grant.
{
  "type": "string"
}
consent (query, optional)
One-use reference bound to the original HttpOnly sign-in cookie.
{
  "type": "string",
  "pattern": "^[a-f0-9]{64}$"
}

Responses

302
Continues to /signup/terms for a first-time account, / after session creation, or the sign-in error page.

Response headers

{
  "Location": {
    "schema": {
      "type": "string"
    },
    "description": "Same-origin continuation."
  }
}
500
Existing dependency failure; inspect its machine code. Transport failures can be bodyless.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
503
Existing dependency failure; inspect its machine code. Transport failures can be bodyless.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}

Link to this operation

GET/api/identity/auth/social/consent

Get the account awaiting Terms acceptance

Requires the pending HttpOnly provider flow and consent cookies.

Access: No authentication credential.

Original verified provider sign-in and matching browser cookies.

Responses

200
Provider, account email, and presentation context.
{
  "application/json": {
    "schema": {
      "type": "object",
      "properties": {
        "provider": {
          "type": "string",
          "enum": [
            "Microsoft",
            "Google",
            "GitHub"
          ]
        },
        "email": {
          "type": "string"
        },
        "context": {
          "type": "string",
          "pattern": "^[a-f0-9]{64}$"
        }
      },
      "required": [
        "provider",
        "email",
        "context"
      ],
      "additionalProperties": false
    }
  }
}
410
The sign-in is missing, expired, or already complete.
502
Identity returned an invalid response.
503
Identity is temporarily unavailable.

Link to this operation

POST/api/identity/auth/social/consent

Accept Terms and finish sign-in

Requires the pending HttpOnly provider flow and consent cookies. Cross-site unsafe requests are rejected. If an existing Downloads session cookie resolves, its matching readable CSRF cookie/header is required even on an otherwise anonymous operation.

Access: No authentication credential.

Original verified provider sign-in and matching browser cookies.

Parameters

X-AppPortal-Consent (header, required)
{
  "type": "string",
  "const": "1"
}
X-AppPortal-CSRF (header, optional)
Required when an existing Downloads session cookie resolves; must match its readable CSRF cookie. Anonymous requests without a session do not require a nonce. Cross-site unsafe requests remain denied.
{
  "type": "string"
}

Request body

{
  "required": true,
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "properties": {
          "agreement": {
            "$ref": "#/components/schemas/SignupTermsAcceptance"
          },
          "context": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          }
        },
        "required": [
          "agreement",
          "context"
        ]
      }
    }
  }
}

Responses

204
Session established. The response has no body.
400
Invalid JSON or domain request; binding can be bodyless.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
403
Same-origin submission and the consent header are required.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
409
The pending account or Terms changed. Review them again.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
410
The sign-in is missing, expired, or already complete.
413
payload_too_large: signup request exceeds 12,288 bytes. A browser navigation may receive an empty response.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
415
Send the signup request as JSON.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
502
Identity returned an invalid response.
503
Identity is temporarily unavailable.

Link to this operation

POST/api/identity/auth/switch-org

Select an accessible organization for this browser session

The server resolves membership and rotates the opaque session with current scoped tokens. A losing concurrent rotation returns session-changed without replacing the winner's cookies. Downloads has no required X-AppPortal-Session-Version header. An account selector does not grant membership or channel access. Cross-site unsafe requests are rejected. If an existing Downloads session cookie resolves, its matching readable CSRF cookie/header is required even on an otherwise anonymous operation.

Access: browserSession + csrfToken

Current signed-in active membership; waitlist and explicit denials still apply

Request body

{
  "required": true,
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/SwitchOrgRequest"
      }
    }
  }
}

Responses

200
Actual owning workflow result.
{
  "application/json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsSessionSummary"
    }
  }
}
400
Invalid JSON or domain request; binding can be bodyless.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
401
A valid Downloads session is required; authentication may be bodyless.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
403
Existing route-specific domain failure; inspect its machine code.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
409
Existing route-specific domain failure; inspect its machine code.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
415
Existing JSON binder/media-type rejection before execution.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
500
Existing dependency failure; inspect its machine code. Transport failures can be bodyless.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
502
identity_session_response_invalid: successful scope response was malformed.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
503
Existing dependency failure; inspect its machine code. Transport failures can be bodyless.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}

Link to this operation

GET/api/session

Read the current Downloads session summary

Returns 401 when no valid session exists. The actual bootstrap leaves sessionVersion null; it never returns access/refresh tokens. Unlike Dashboard, Downloads does not require a session-version header.

Access: browserSession

Downloads HttpOnly session cookie

Responses

200
Actual owning workflow result.
{
  "application/json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsSessionSummary"
    }
  }
}
401
A valid Downloads session is required; authentication may be bodyless.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
403
Current account/membership/channel authority is required.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
500
Existing dependency failure; inspect its machine code. Transport failures can be bodyless.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}
503
Existing dependency failure; inspect its machine code. Transport failures can be bodyless.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/DownloadsBrowserProblem"
    }
  }
}

Link to this operation

Declared schemas

Schema references in the operations resolve to these definitions from the same OpenAPI document.

PolicyAcceptanceHistoryEntry
{
  "type": [
    "object",
    "null"
  ],
  "properties": {
    "evidenceId": {
      "type": "string"
    },
    "presentationId": {
      "type": "string"
    },
    "revisionId": {
      "type": "string"
    },
    "policyKey": {
      "type": "string"
    },
    "sha256": {
      "type": "string"
    },
    "subjectUserId": {
      "type": "string"
    },
    "purpose": {
      "type": "string"
    },
    "scopeKind": {
      "type": "string"
    },
    "tenantId": {
      "type": [
        "string",
        "null"
      ]
    },
    "surface": {
      "type": "string"
    },
    "locale": {
      "type": "string"
    },
    "presentedAt": {
      "type": "string",
      "format": "date-time"
    },
    "actedAt": {
      "type": "string",
      "format": "date-time"
    },
    "authorityBasis": {
      "type": "string"
    }
  },
  "required": [
    "evidenceId",
    "presentationId",
    "revisionId",
    "policyKey",
    "sha256",
    "subjectUserId",
    "purpose",
    "scopeKind",
    "tenantId",
    "surface",
    "locale",
    "presentedAt",
    "actedAt",
    "authorityBasis"
  ]
}
PolicyAcceptanceHistoryPage
{
  "type": [
    "object",
    "null"
  ],
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": [
          "object",
          "null"
        ],
        "properties": {
          "evidenceId": {
            "type": "string"
          },
          "presentationId": {
            "type": "string"
          },
          "revisionId": {
            "type": "string"
          },
          "policyKey": {
            "type": "string"
          },
          "sha256": {
            "type": "string"
          },
          "subjectUserId": {
            "type": "string"
          },
          "purpose": {
            "type": "string"
          },
          "scopeKind": {
            "type": "string"
          },
          "tenantId": {
            "type": [
              "string",
              "null"
            ]
          },
          "surface": {
            "type": "string"
          },
          "locale": {
            "type": "string"
          },
          "presentedAt": {
            "type": "string",
            "format": "date-time"
          },
          "actedAt": {
            "type": "string",
            "format": "date-time"
          },
          "authorityBasis": {
            "type": "string"
          }
        },
        "required": [
          "evidenceId",
          "presentationId",
          "revisionId",
          "policyKey",
          "sha256",
          "subjectUserId",
          "purpose",
          "scopeKind",
          "tenantId",
          "surface",
          "locale",
          "presentedAt",
          "actedAt",
          "authorityBasis"
        ]
      }
    },
    "nextCursor": {
      "type": [
        "string",
        "null"
      ]
    },
    "totalCount": {
      "type": [
        "integer",
        "null"
      ],
      "default": null
    }
  },
  "required": [
    "items",
    "nextCursor"
  ]
}
PolicyArchiveDescriptor
{
  "type": [
    "object",
    "null"
  ],
  "properties": {
    "revisionId": {
      "type": "string"
    },
    "policyKey": {
      "type": "string"
    },
    "sha256": {
      "type": "string"
    },
    "locale": {
      "type": "string"
    },
    "effectiveOn": {
      "type": [
        "string",
        "null"
      ],
      "format": "date"
    },
    "canonicalRoute": {
      "type": [
        "string",
        "null"
      ]
    },
    "classification": {
      "type": "string"
    }
  },
  "required": [
    "revisionId",
    "policyKey",
    "sha256",
    "locale",
    "effectiveOn",
    "canonicalRoute",
    "classification"
  ]
}
PublishedPolicyRevisions
{
  "type": [
    "array",
    "null"
  ],
  "items": {
    "type": [
      "object",
      "null"
    ],
    "properties": {
      "revisionId": {
        "type": "string"
      },
      "policyKey": {
        "type": "string"
      },
      "sha256": {
        "type": "string"
      },
      "locale": {
        "type": "string"
      },
      "effectiveOn": {
        "type": [
          "string",
          "null"
        ],
        "format": "date"
      },
      "canonicalRoute": {
        "type": [
          "string",
          "null"
        ]
      },
      "classification": {
        "type": "string"
      }
    },
    "required": [
      "revisionId",
      "policyKey",
      "sha256",
      "locale",
      "effectiveOn",
      "canonicalRoute",
      "classification"
    ]
  }
}
SignupTermsPresentationResponse
{
  "type": [
    "object",
    "null"
  ],
  "properties": {
    "revisionId": {
      "type": "string"
    },
    "sha256": {
      "type": "string"
    },
    "locale": {
      "type": "string"
    },
    "content": {
      "type": "string"
    },
    "presentationToken": {
      "type": "string"
    }
  },
  "required": [
    "revisionId",
    "sha256",
    "locale",
    "content",
    "presentationToken"
  ]
}
SignupTermsAcceptance
{
  "type": "object",
  "properties": {
    "presentationToken": {
      "type": [
        "string",
        "null"
      ]
    },
    "actionId": {
      "type": "string",
      "format": "uuid"
    },
    "accepted": {
      "type": "boolean"
    }
  },
  "additionalProperties": false
}
SocialSignupStartRequest
{
  "type": "object",
  "properties": {
    "agreement": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "presentationToken": {
          "type": [
            "string",
            "null"
          ]
        },
        "actionId": {
          "type": "string",
          "format": "uuid"
        },
        "accepted": {
          "type": "boolean"
        }
      },
      "additionalProperties": false
    },
    "returnUrl": {
      "type": [
        "string",
        "null"
      ],
      "default": null
    }
  }
}
DownloadAccessView
{
  "type": [
    "object",
    "null"
  ],
  "properties": {
    "channels": {
      "type": "array",
      "items": {
        "type": [
          "object",
          "null"
        ],
        "properties": {
          "channel": {
            "type": "object",
            "properties": {
              "channelId": {
                "type": "string"
              },
              "tenantId": {
                "type": "string"
              },
              "appId": {
                "type": "string"
              },
              "key": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "rank": {
                "type": "integer"
              },
              "createdAt": {
                "type": "string",
                "format": "date-time"
              }
            },
            "required": [
              "channelId",
              "tenantId",
              "appId",
              "key",
              "name",
              "rank",
              "createdAt"
            ]
          },
          "artifacts": {
            "type": "array",
            "items": {
              "type": [
                "object",
                "null"
              ],
              "properties": {
                "artifact": {
                  "type": "object",
                  "properties": {
                    "artifactId": {
                      "type": "string"
                    },
                    "kind": {
                      "enum": [
                        "Ipa",
                        "Aab",
                        "Apk",
                        "WindowsZip"
                      ]
                    },
                    "fileName": {
                      "type": "string"
                    },
                    "contentType": {
                      "type": "string"
                    },
                    "sizeBytes": {
                      "type": "integer"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "tenantId": {
                      "type": "string"
                    },
                    "appId": {
                      "type": "string"
                    },
                    "environmentName": {
                      "type": "string"
                    },
                    "deploymentTarget": {
                      "type": "string"
                    },
                    "storageKey": {
                      "type": "string"
                    },
                    "state": {
                      "type": "integer"
                    },
                    "bundleId": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "default": null
                    },
                    "appVersion": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "default": null
                    },
                    "buildNumber": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "default": null
                    },
                    "displayName": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "default": null
                    },
                    "iconStorageKey": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "default": null
                    }
                  },
                  "required": [
                    "artifactId",
                    "kind",
                    "fileName",
                    "contentType",
                    "sizeBytes",
                    "createdAt",
                    "tenantId",
                    "appId",
                    "environmentName",
                    "deploymentTarget",
                    "storageKey",
                    "state"
                  ]
                },
                "releasedAt": {
                  "type": "string",
                  "format": "date-time"
                },
                "signingInfo": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "properties": {
                    "platform": {
                      "type": "string"
                    },
                    "signed": {
                      "type": "boolean"
                    },
                    "summary": {
                      "type": "string"
                    },
                    "schemes": {
                      "type": "array",
                      "items": {
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "signerName": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "certificateSha256": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "isDebugSigned": {
                      "type": "boolean"
                    },
                    "certificateExpiresAt": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "date-time"
                    },
                    "provisionedDeviceCount": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "distributionType": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "analyzedAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "analysisVersion": {
                      "type": "integer",
                      "default": 0
                    },
                    "rootCodeSignature": {
                      "enum": [
                        "unavailable",
                        "unsupported",
                        "invalid",
                        "verified",
                        null
                      ]
                    }
                  },
                  "required": [
                    "platform",
                    "signed",
                    "summary",
                    "schemes",
                    "signerName",
                    "certificateSha256",
                    "isDebugSigned",
                    "certificateExpiresAt",
                    "provisionedDeviceCount",
                    "distributionType",
                    "analyzedAt"
                  ],
                  "default": null
                },
                "releaseNotes": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "properties": {
                    "releaseId": {
                      "type": "string"
                    },
                    "text": {
                      "type": "string"
                    },
                    "isTruncated": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "releaseId",
                    "text",
                    "isTruncated"
                  ],
                  "default": null
                }
              },
              "required": [
                "artifact",
                "releasedAt"
              ]
            }
          }
        },
        "required": [
          "channel",
          "artifacts"
        ]
      }
    }
  },
  "required": [
    "channels"
  ],
  "description": "Current channel-membership view, including direct/team membership and current app/account denials, filtered by distribution readiness. A denied account can yield an empty channels array. A portal role, registered upload or signed-link possession does not itself grant channel membership."
}
SignedDownloadLinkResponse
{
  "type": [
    "object",
    "null"
  ],
  "properties": {
    "artifactId": {
      "type": "string"
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "expiresAt": {
      "type": "string",
      "format": "date-time"
    },
    "contentType": {
      "type": "string"
    },
    "auditEventId": {
      "type": "string"
    },
    "installUrl": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "default": null
    }
  },
  "required": [
    "artifactId",
    "url",
    "expiresAt",
    "contentType",
    "auditEventId"
  ],
  "description": "Server-minted opaque signed URL with audit identity and actual expiry, currently fifteen minutes after issuance. Preserve the entire returned URL; do not synthesize scope/signature. installUrl is nullable and present only for supported ready internal IPA installation on an approved HTTPS public origin. It proves neither physical-device eligibility nor Apple cryptographic trust."
}
AuthenticatedUser
{
  "type": [
    "object",
    "null"
  ],
  "properties": {
    "user": {
      "type": "object",
      "properties": {
        "userId": {
          "type": "string"
        },
        "email": {
          "type": "string"
        },
        "displayName": {
          "type": "string"
        },
        "hasPassword": {
          "type": "boolean"
        },
        "createdAt": {
          "type": "string",
          "format": "date-time"
        },
        "active": {
          "type": "boolean"
        }
      },
      "required": [
        "userId",
        "email",
        "displayName",
        "hasPassword",
        "createdAt",
        "active"
      ]
    },
    "memberships": {
      "type": "array",
      "items": {
        "type": [
          "object",
          "null"
        ],
        "properties": {
          "userId": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "displayName": {
            "type": "string"
          },
          "tenantId": {
            "type": "string"
          },
          "tenantSlug": {
            "type": "string"
          },
          "tenantName": {
            "type": "string"
          },
          "status": {
            "enum": [
              "Active",
              "Invited"
            ]
          },
          "roles": {
            "type": "array",
            "items": {
              "enum": [
                "Admin",
                "AppOwner",
                "Developer",
                "ProductOwner",
                "Support",
                "PlatformOperator"
              ]
            }
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "tenantKind": {
            "enum": [
              "Personal",
              "Organization"
            ],
            "default": "Organization"
          },
          "externallyProvisioned": {
            "type": "boolean",
            "default": false
          },
          "ownerUserId": {
            "type": [
              "string",
              "null"
            ],
            "default": null
          }
        },
        "required": [
          "userId",
          "email",
          "displayName",
          "tenantId",
          "tenantSlug",
          "tenantName",
          "status",
          "roles",
          "createdAt"
        ]
      }
    },
    "activeOrg": {
      "type": "string"
    },
    "access": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "orgAdmin": {
          "type": "boolean"
        },
        "canManageApps": {
          "type": "boolean"
        },
        "allApps": {
          "type": "boolean"
        },
        "baselineCapabilities": {
          "type": "array",
          "items": {
            "enum": [
              "ViewAnalytics",
              "ViewCrashes",
              "ManageCrashWorkflow",
              "AssignCrashOwners",
              "ViewLogs",
              "ManageReleases",
              "AccessDistribution",
              "ManageMessaging",
              "ViewLocation",
              "ManageIssueConnections",
              "ManageTeamMembers"
            ]
          }
        },
        "apps": {
          "type": "array",
          "items": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "appId": {
                "type": "string"
              },
              "capabilities": {
                "type": "array",
                "items": {
                  "enum": [
                    "ViewAnalytics",
                    "ViewCrashes",
                    "ManageCrashWorkflow",
                    "AssignCrashOwners",
                    "ViewLogs",
                    "ManageReleases",
                    "AccessDistribution",
                    "ManageMessaging",
                    "ViewLocation",
                    "ManageIssueConnections",
                    "ManageTeamMembers"
                  ]
                }
              }
            },
            "required": [
              "appId",
              "capabilities"
            ]
          }
        },
        "deniedAppIds": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": [
              "string",
              "null"
            ]
          },
          "default": null
        },
        "tenantRoles": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "enum": [
              "Admin",
              "AppOwner",
              "Developer",
              "ProductOwner",
              "Support",
              "PlatformOperator"
            ]
          },
          "default": null
        }
      },
      "required": [
        "orgAdmin",
        "canManageApps",
        "allApps",
        "baselineCapabilities",
        "apps"
      ],
      "default": null
    },
    "isWaitlisted": {
      "type": "boolean",
      "default": false
    },
    "canCreateWorkspaces": {
      "type": "boolean",
      "default": true
    },
    "portalAccess": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "status": {
          "type": "string"
        },
        "source": {
          "type": "string"
        },
        "decidedAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time",
          "default": null
        },
        "revision": {
          "type": "integer",
          "default": 0
        },
        "isWaitlisted": {
          "type": "boolean",
          "readOnly": true
        }
      },
      "required": [
        "status",
        "source"
      ],
      "default": null
    },
    "profileAvatarAvailable": {
      "type": "boolean"
    }
  },
  "required": [
    "user",
    "memberships",
    "activeOrg"
  ],
  "description": "Actual sanitized Identity profile and membership/access projection. Password hash and bearer/refresh tokens are absent. Membership history, waitlist state and workspace-creation eligibility do not substitute for current channel access; activeOrg may be empty and access null."
}
OrganizationClaimPresentation
{
  "type": [
    "object",
    "null"
  ],
  "properties": {
    "claimPresentationId": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "slug": {
      "type": "string"
    },
    "expiresAt": {
      "type": "string",
      "format": "date-time"
    },
    "terms": {
      "type": "object",
      "properties": {
        "revisionId": {
          "type": "string"
        },
        "sha256": {
          "type": "string"
        },
        "locale": {
          "type": "string"
        },
        "content": {
          "type": "string"
        }
      },
      "required": [
        "revisionId",
        "sha256",
        "locale",
        "content"
      ]
    },
    "organizationAuthority": {
      "type": "object",
      "properties": {
        "revisionId": {
          "type": "string"
        },
        "sha256": {
          "type": "string"
        },
        "locale": {
          "type": "string"
        },
        "content": {
          "type": "string"
        }
      },
      "required": [
        "revisionId",
        "sha256",
        "locale",
        "content"
      ]
    }
  },
  "required": [
    "claimPresentationId",
    "name",
    "slug",
    "expiresAt",
    "terms",
    "organizationAuthority"
  ]
}
OrganizationClaimStatus
{
  "type": [
    "object",
    "null"
  ],
  "properties": {
    "status": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "tenantId": {
      "type": "string"
    },
    "tenantSlug": {
      "type": "string"
    },
    "ticketId": {
      "type": [
        "string",
        "null"
      ]
    },
    "caseId": {
      "type": [
        "string",
        "null"
      ]
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "status",
    "name",
    "tenantId",
    "tenantSlug",
    "ticketId",
    "caseId",
    "createdAt"
  ]
}
TenantOperationDeniedResponse
{
  "type": [
    "object",
    "null"
  ],
  "properties": {
    "errorCode": {
      "type": "string"
    },
    "error": {
      "type": "string"
    }
  },
  "required": [
    "errorCode",
    "error"
  ]
}
SignInIdentity
{
  "type": [
    "object",
    "null"
  ],
  "properties": {
    "identityId": {
      "type": "string"
    },
    "provider": {
      "type": "string"
    },
    "email": {
      "type": "string"
    },
    "accountName": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "identityId",
    "provider",
    "email",
    "accountName"
  ]
}
LoginRequest
{
  "type": [
    "object",
    "null"
  ],
  "properties": {
    "email": {
      "type": [
        "string",
        "null"
      ]
    },
    "password": {
      "type": [
        "string",
        "null"
      ]
    }
  }
}
RegisterRequest
{
  "type": [
    "object",
    "null"
  ],
  "properties": {
    "email": {
      "type": [
        "string",
        "null"
      ]
    },
    "password": {
      "type": [
        "string",
        "null"
      ]
    },
    "displayName": {
      "type": [
        "string",
        "null"
      ]
    },
    "agreement": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "presentationToken": {
          "type": [
            "string",
            "null"
          ]
        },
        "actionId": {
          "type": "string",
          "format": "uuid"
        },
        "accepted": {
          "type": "boolean"
        }
      },
      "additionalProperties": false
    }
  },
  "description": "Local signup: valid trimmed email, password at least eight characters are domain requirements beyond JSON binding. Creates a global account with no memberships; the response is a browser session summary, never AuthTokens or implicit workspace admission."
}
SwitchOrgRequest
{
  "type": [
    "object",
    "null"
  ],
  "properties": {
    "tenantId": {
      "type": [
        "string",
        "null"
      ]
    }
  }
}
OrganizationClaimPresentationRequest
{
  "type": [
    "object",
    "null"
  ],
  "properties": {
    "name": {
      "type": [
        "string",
        "null"
      ]
    },
    "slug": {
      "type": [
        "string",
        "null"
      ],
      "default": null
    }
  },
  "additionalProperties": false
}
DownloadsMemberChannelPage
{
  "type": [
    "object",
    "null"
  ],
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": [
          "object",
          "null"
        ],
        "properties": {
          "channelId": {
            "type": "string"
          },
          "tenantId": {
            "type": "string"
          },
          "appId": {
            "type": "string"
          },
          "key": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "rank": {
            "type": "integer"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "channelId",
          "tenantId",
          "appId",
          "key",
          "name",
          "rank",
          "createdAt"
        ]
      }
    },
    "nextCursor": {
      "type": [
        "string",
        "null"
      ]
    },
    "totalCount": {
      "type": [
        "integer",
        "null"
      ],
      "default": null
    }
  },
  "required": [
    "items",
    "nextCursor"
  ]
}
DownloadsMemberArtifactPage
{
  "type": [
    "object",
    "null"
  ],
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": [
          "object",
          "null"
        ],
        "properties": {
          "artifact": {
            "type": "object",
            "properties": {
              "artifactId": {
                "type": "string"
              },
              "kind": {
                "enum": [
                  "Ipa",
                  "Aab",
                  "Apk",
                  "WindowsZip"
                ]
              },
              "fileName": {
                "type": "string"
              },
              "contentType": {
                "type": "string"
              },
              "sizeBytes": {
                "type": "integer"
              },
              "createdAt": {
                "type": "string",
                "format": "date-time"
              },
              "tenantId": {
                "type": "string"
              },
              "appId": {
                "type": "string"
              },
              "environmentName": {
                "type": "string"
              },
              "deploymentTarget": {
                "type": "string"
              },
              "storageKey": {
                "type": "string"
              },
              "state": {
                "type": "integer"
              },
              "bundleId": {
                "type": [
                  "string",
                  "null"
                ],
                "default": null
              },
              "appVersion": {
                "type": [
                  "string",
                  "null"
                ],
                "default": null
              },
              "buildNumber": {
                "type": [
                  "string",
                  "null"
                ],
                "default": null
              },
              "displayName": {
                "type": [
                  "string",
                  "null"
                ],
                "default": null
              },
              "iconStorageKey": {
                "type": [
                  "string",
                  "null"
                ],
                "default": null
              }
            },
            "required": [
              "artifactId",
              "kind",
              "fileName",
              "contentType",
              "sizeBytes",
              "createdAt",
              "tenantId",
              "appId",
              "environmentName",
              "deploymentTarget",
              "storageKey",
              "state"
            ]
          },
          "releasedAt": {
            "type": "string",
            "format": "date-time"
          },
          "signingInfo": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "platform": {
                "type": "string"
              },
              "signed": {
                "type": "boolean"
              },
              "summary": {
                "type": "string"
              },
              "schemes": {
                "type": "array",
                "items": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "signerName": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "certificateSha256": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "isDebugSigned": {
                "type": "boolean"
              },
              "certificateExpiresAt": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time"
              },
              "provisionedDeviceCount": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "distributionType": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "analyzedAt": {
                "type": "string",
                "format": "date-time"
              },
              "analysisVersion": {
                "type": "integer",
                "default": 0
              },
              "rootCodeSignature": {
                "enum": [
                  "unavailable",
                  "unsupported",
                  "invalid",
                  "verified",
                  null
                ]
              }
            },
            "required": [
              "platform",
              "signed",
              "summary",
              "schemes",
              "signerName",
              "certificateSha256",
              "isDebugSigned",
              "certificateExpiresAt",
              "provisionedDeviceCount",
              "distributionType",
              "analyzedAt"
            ],
            "default": null
          },
          "releaseNotes": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "releaseId": {
                "type": "string"
              },
              "text": {
                "type": "string"
              },
              "isTruncated": {
                "type": "boolean"
              }
            },
            "required": [
              "releaseId",
              "text",
              "isTruncated"
            ],
            "default": null
          }
        },
        "required": [
          "artifact",
          "releasedAt"
        ]
      }
    },
    "nextCursor": {
      "type": [
        "string",
        "null"
      ]
    },
    "totalCount": {
      "type": [
        "integer",
        "null"
      ],
      "default": null
    }
  },
  "required": [
    "items",
    "nextCursor"
  ]
}
DownloadsSessionSummary
{
  "type": "object",
  "required": [
    "expiresAt",
    "tenantId",
    "tenantSlug"
  ],
  "properties": {
    "expiresAt": {
      "type": "string",
      "format": "date-time"
    },
    "tenantId": {
      "type": "string"
    },
    "tenantSlug": {
      "type": "string"
    },
    "sessionVersion": {
      "type": [
        "string",
        "null"
      ]
    },
    "signInIdentity": {
      "$ref": "#/components/schemas/SignInIdentity"
    }
  },
  "description": "Actual BffSessionSummary browser projection. Tokens remain server-held. Downloads GET /api/session writes null sessionVersion; sign-in/scope rotation can return its correlation value. Downloads does not require a session-version request header. An organization-less signed-in account has empty tenantId/tenantSlug, not a granted workspace."
}
DownloadsBrowserProblem
{
  "type": [
    "object",
    "null"
  ],
  "properties": {
    "type": {
      "type": [
        "string",
        "null"
      ]
    },
    "title": {
      "type": [
        "string",
        "null"
      ]
    },
    "status": {
      "type": [
        "integer",
        "null"
      ]
    },
    "detail": {
      "type": [
        "string",
        "null"
      ]
    },
    "instance": {
      "type": [
        "string",
        "null"
      ]
    },
    "code": {
      "type": "string"
    },
    "message": {
      "type": "string"
    },
    "error": {
      "type": "string"
    },
    "traceId": {
      "type": "string"
    },
    "errorCode": {
      "type": "string"
    }
  },
  "description": "Existing shared Identity/BFF/Download management problem details. Machine code, public message, traceId and legacy error alias remain distinct from native signed-content errors and account-policy JSON. Authentication, binding and transport failures can be bodyless."
}
DownloadsNativeError
{
  "type": "object",
  "required": [
    "error",
    "code",
    "message",
    "traceId"
  ],
  "properties": {
    "error": {
      "type": [
        "string",
        "null"
      ]
    },
    "code": {
      "type": "string"
    },
    "message": {
      "type": "string"
    },
    "traceId": {
      "type": "string"
    },
    "retryAction": {
      "type": "string"
    }
  },
  "description": "Actual shared DownloadNativeErrors application/json fields. Signed content/manifest signing-readiness failures use this representation, not a rewritten management problem. retryAction is optional; no credential-purge or entitlement instruction is inferred."
}
DownloadsStorageBusy
{
  "type": "object",
  "required": [
    "error",
    "message"
  ],
  "properties": {
    "error": {
      "const": "storage_operation_busy"
    },
    "message": {
      "type": "string"
    }
  }
}
DownloadsAuthorizeUrl
{
  "type": "object",
  "required": [
    "authorizeUrl"
  ],
  "properties": {
    "authorizeUrl": {
      "type": "string",
      "format": "uri"
    }
  }
}