Sign in with Doorman

The relying parties a developer registers, the sign-ins that wait for the owner's decision, and what the web app does for a browser on the way. Every operation answers 404 until the deployment switches sign-in on.

List relying parties

GET/v1/sign-in/clients

Access session: a console session only; an API key gets 403 session_required.

The relying parties this account registered, oldest first. Relying parties that publish their own identity, and those of other accounts, are not listed.

OAuth: not available to delegated app tokens.

Part of Sign in with Doorman, which a deployment switches on. Where it is off this route answers 404 not_found, and features.signIn of GET /v1/me is false.

Also available as client.signIn.clients.list in TypeScript and client.sign_in.clients.list in Python.

Organizations: every member's console session may call it. See Roles and permissions.

Answers 200: The relying parties.

Response 200: SignInClientList

The relying parties the account registered, oldest first.

Errors
StatusErrorMeaning
401unauthorizedThe credential was missing, malformed, revoked or belongs to an inactive account.
401session_invalidThe console session token could not be verified.
401session_expiredThe console session token has expired.
401session_claims_missingThe session token does not carry a verified email address.
403session_requiredAccount keys, developer apps, relying parties, installations, consent, approving a sign-in and the assistant require a console session. So does loosening the security policy, trusting a sender, releasing held mail, allowing a sign-in, letting agents sign in to new services alone or telling a service who owns an agent, unless the account allows its account keys to.
403account_suspendedThe account is suspended.
403account_deletedThe account was deleted.
403member_deactivatedThe signed-in person's access to the organization was deactivated, or they were removed from it. It holds from their next request, whatever their session token says. An admin of the organization can let a deactivated member in again.
404not_foundNo such resource for this caller, or no such route.
409account_mismatchThe request named another account in x-doorman-account than the one its credential acts for, as happens when the console's organization was switched in another tab. Reload and try again.
500internal_errorSomething went wrong on the server.
curl -s "https://api.doorman.fyi/v1/sign-in/clients" \
  -H "authorization: Bearer $DOORMAN_API_KEY"

Register a relying party

POST/v1/sign-in/clients

Access session: a console session only; an API key gets 403 session_required.

Registers a service that lets agents sign in with Doorman, identified by its host. Every redirect and the start URL must be on that host. Unless it is a public one, the answer carries its secret, once. Until the host proves it is the service's own (signIn.clients.verify), only addresses of this account can sign in to it. An account registers at most 25.

OAuth: not available to delegated app tokens.

Part of Sign in with Doorman, which a deployment switches on. Where it is off this route answers 404 not_found, and features.signIn of GET /v1/me is false.

Also available as client.signIn.clients.create in TypeScript and client.sign_in.clients.create in Python.

Organizations: a member's console session needs apps:manage. See Roles and permissions.

Request body (application/json): CreateSignInClient

Register a relying party: a service that lets agents sign in with Doorman. It is identified by its host, and every URL it registers is on that host.

  • namestringrequired

    What the service calls itself. People are shown the host beside it.

  • hoststringrequired

    The host agents sign in at. A public name the service can prove is its own, or localhost, 127.0.0.1 or [::1] while developing: a relying party on your own machine signs in your own addresses only. Example: app.example.net

  • redirectUrisstring[]required

  • startUrlstringoptional

    Where the service starts a Sign in with Doorman (OpenID Connect's initiate_login_uri). A sign-in link sends the browser there with iss and login_hint. Without one, the browser is sent to the service's front page.

  • tokenEndpointAuthMethod"client_secret_basic" | "client_secret_post" | "none"optional

    Defaults to client_secret_basic. A relying party with a secret may present it either way. none registers a public one, which holds no secret and uses S256 PKCE.

Answers 201: The relying party, with its one-time secret if it has one.

Response 201: CreatedSignInClient

A new relying party and, unless it is a public one, its secret, shown once.

  • idstringrequired

    A registered relying party's identifier. Example: sic_01jc5f1a2b3c4d5e6f7g8h9j0k

  • namestringrequired

  • hoststringrequired

  • redirectUrisstring[]required

  • startUrlstring | nullrequired

  • tokenEndpointAuthMethod"client_secret_basic" | "client_secret_post" | "none"required

  • verifiedbooleanrequired

    Whether the host proved it is the relying party's own. Until it does, only addresses of the account that registered it can sign in.

  • verifiedAtstring (date-time) | nullrequired

  • proofobject | nullrequired

    How the host proves it is the relying party's own; null for a host on the developer's own machine, which has nothing to prove.

  • urlstringrequired

    Serve the file here, over HTTPS, without a redirect.

  • bodyobjectrequired

    The file's JSON. Other fields beside these two are ignored.

  • client_idstringrequired

    A registered relying party's identifier. Example: sic_01jc5f1a2b3c4d5e6f7g8h9j0k

  • proofstringrequired

  • status"active" | "deleted"required

  • createdAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • updatedAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • clientSecretstring | nullrequired

Errors
StatusErrorMeaning
400validation_errorA field is missing or invalid; the message names it.
400invalid_jsonThe request body is not JSON.
401unauthorizedThe credential was missing, malformed, revoked or belongs to an inactive account.
401session_invalidThe console session token could not be verified.
401session_expiredThe console session token has expired.
401session_claims_missingThe session token does not carry a verified email address.
403session_requiredAccount keys, developer apps, relying parties, installations, consent, approving a sign-in and the assistant require a console session. So does loosening the security policy, trusting a sender, releasing held mail, allowing a sign-in, letting agents sign in to new services alone or telling a service who owns an agent, unless the account allows its account keys to.
403account_suspendedThe account is suspended.
403account_deletedThe account was deleted.
403permission_deniedThe signed-in member's role in the organization lacks a permission the operation needs; permission names it. An admin of the organization can do it, or change the member's role.
403member_deactivatedThe signed-in person's access to the organization was deactivated, or they were removed from it. It holds from their next request, whatever their session token says. An admin of the organization can let a deactivated member in again.
404not_foundNo such resource for this caller, or no such route.
409limit_reachedThe abuse ceiling for inboxes, custom domains, keys, endpoints, services, relying parties, the services an address signs in to, the sends an inbox has waiting for its owner or the invitations an organization has open; delete, revoke or decide one first.
409account_mismatchThe request named another account in x-doorman-account than the one its credential acts for, as happens when the console's organization was switched in another tab. Reload and try again.
500internal_errorSomething went wrong on the server.
curl -s -X POST "https://api.doorman.fyi/v1/sign-in/clients" \
  -H "authorization: Bearer $DOORMAN_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "name": "Example Tools",
    "host": "app.example.net",
    "redirectUris": [
      "https://app.example.net/auth/callback"
    ],
    "startUrl": "https://app.example.net/auth/doorman"
  }'

Read a relying party

GET/v1/sign-in/clients/{clientId}

Access session: a console session only; an API key gets 403 session_required.

One relying party this account registered, with the proof its host has to serve, never its secret.

OAuth: not available to delegated app tokens.

Part of Sign in with Doorman, which a deployment switches on. Where it is off this route answers 404 not_found, and features.signIn of GET /v1/me is false.

Also available as client.signIn.clients.get in TypeScript and client.sign_in.clients.get in Python.

Organizations: every member's console session may call it. See Roles and permissions.

Parameters
  • clientIdstring, in pathrequired

    The relying party. Example: sic_01jc5f1a2b3c4d5e6f7g8h9j0k.

Answers 200: The relying party.

Response 200: SignInClient

A relying party a developer registered, without its secret.

  • idstringrequired

    A registered relying party's identifier. Example: sic_01jc5f1a2b3c4d5e6f7g8h9j0k

  • namestringrequired

  • hoststringrequired

  • redirectUrisstring[]required

  • startUrlstring | nullrequired

  • tokenEndpointAuthMethod"client_secret_basic" | "client_secret_post" | "none"required

  • verifiedbooleanrequired

    Whether the host proved it is the relying party's own. Until it does, only addresses of the account that registered it can sign in.

  • verifiedAtstring (date-time) | nullrequired

  • proofobject | nullrequired

    How the host proves it is the relying party's own; null for a host on the developer's own machine, which has nothing to prove.

  • urlstringrequired

    Serve the file here, over HTTPS, without a redirect.

  • bodyobjectrequired

    The file's JSON. Other fields beside these two are ignored.

  • client_idstringrequired

    A registered relying party's identifier. Example: sic_01jc5f1a2b3c4d5e6f7g8h9j0k

  • proofstringrequired

  • status"active" | "deleted"required

  • createdAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • updatedAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

Errors
StatusErrorMeaning
401unauthorizedThe credential was missing, malformed, revoked or belongs to an inactive account.
401session_invalidThe console session token could not be verified.
401session_expiredThe console session token has expired.
401session_claims_missingThe session token does not carry a verified email address.
403session_requiredAccount keys, developer apps, relying parties, installations, consent, approving a sign-in and the assistant require a console session. So does loosening the security policy, trusting a sender, releasing held mail, allowing a sign-in, letting agents sign in to new services alone or telling a service who owns an agent, unless the account allows its account keys to.
403account_suspendedThe account is suspended.
403account_deletedThe account was deleted.
403member_deactivatedThe signed-in person's access to the organization was deactivated, or they were removed from it. It holds from their next request, whatever their session token says. An admin of the organization can let a deactivated member in again.
404not_foundNo such resource for this caller, or no such route.
409account_mismatchThe request named another account in x-doorman-account than the one its credential acts for, as happens when the console's organization was switched in another tab. Reload and try again.
500internal_errorSomething went wrong on the server.

Example 200 response

{
  "id": "sic_01jc5f1a2b3c4d5e6f7g8h9j0k",
  "name": "Example Tools",
  "host": "app.example.net",
  "redirectUris": [
    "https://app.example.net/auth/callback"
  ],
  "startUrl": "https://app.example.net/auth/doorman",
  "tokenEndpointAuthMethod": "client_secret_basic",
  "verified": false,
  "verifiedAt": null,
  "proof": {
    "url": "https://app.example.net/.well-known/doorman-sign-in.json",
    "body": {
      "client_id": "sic_01jc5f1a2b3c4d5e6f7g8h9j0k",
      "proof": "ccccccccccccccccccccccccccccccccccccccccccc"
    }
  },
  "status": "active",
  "createdAt": "2026-11-05T10:05:00.000Z",
  "updatedAt": "2026-11-05T10:05:00.000Z"
}
curl -s "https://api.doorman.fyi/v1/sign-in/clients/sic_01jc5f1a2b3c4d5e6f7g8h9j0k" \
  -H "authorization: Bearer $DOORMAN_API_KEY"

Update a relying party

PATCH/v1/sign-in/clients/{clientId}

Access session: a console session only; an API key gets 403 session_required.

Replaces the name, the redirects or the start URL. Sign-ins in progress end. The addresses already allowed stay allowed: they were allowed for the host, and the host never changes.

OAuth: not available to delegated app tokens.

Part of Sign in with Doorman, which a deployment switches on. Where it is off this route answers 404 not_found, and features.signIn of GET /v1/me is false.

Also available as client.signIn.clients.update in TypeScript and client.sign_in.clients.update in Python.

Organizations: a member's console session needs apps:manage. See Roles and permissions.

Parameters
  • clientIdstring, in pathrequired

    The relying party. Example: sic_01jc5f1a2b3c4d5e6f7g8h9j0k.

Request body (application/json): UpdateSignInClient

Replace the fields given. The host never changes: register another relying party for another host.

  • namestringoptional

  • redirectUrisstring[]optional

    Every one on the relying party's host.

  • startUrlstring | nulloptional

    On the relying party's host. Null removes it.

Answers 200: The relying party as it is now.

Response 200: SignInClient

A relying party a developer registered, without its secret.

  • idstringrequired

    A registered relying party's identifier. Example: sic_01jc5f1a2b3c4d5e6f7g8h9j0k

  • namestringrequired

  • hoststringrequired

  • redirectUrisstring[]required

  • startUrlstring | nullrequired

  • tokenEndpointAuthMethod"client_secret_basic" | "client_secret_post" | "none"required

  • verifiedbooleanrequired

    Whether the host proved it is the relying party's own. Until it does, only addresses of the account that registered it can sign in.

  • verifiedAtstring (date-time) | nullrequired

  • proofobject | nullrequired

    How the host proves it is the relying party's own; null for a host on the developer's own machine, which has nothing to prove.

  • urlstringrequired

    Serve the file here, over HTTPS, without a redirect.

  • bodyobjectrequired

    The file's JSON. Other fields beside these two are ignored.

  • client_idstringrequired

    A registered relying party's identifier. Example: sic_01jc5f1a2b3c4d5e6f7g8h9j0k

  • proofstringrequired

  • status"active" | "deleted"required

  • createdAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • updatedAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

Errors
StatusErrorMeaning
400validation_errorA field is missing or invalid; the message names it.
400invalid_jsonThe request body is not JSON.
401unauthorizedThe credential was missing, malformed, revoked or belongs to an inactive account.
401session_invalidThe console session token could not be verified.
401session_expiredThe console session token has expired.
401session_claims_missingThe session token does not carry a verified email address.
403session_requiredAccount keys, developer apps, relying parties, installations, consent, approving a sign-in and the assistant require a console session. So does loosening the security policy, trusting a sender, releasing held mail, allowing a sign-in, letting agents sign in to new services alone or telling a service who owns an agent, unless the account allows its account keys to.
403account_suspendedThe account is suspended.
403account_deletedThe account was deleted.
403permission_deniedThe signed-in member's role in the organization lacks a permission the operation needs; permission names it. An admin of the organization can do it, or change the member's role.
403member_deactivatedThe signed-in person's access to the organization was deactivated, or they were removed from it. It holds from their next request, whatever their session token says. An admin of the organization can let a deactivated member in again.
404not_foundNo such resource for this caller, or no such route.
409account_mismatchThe request named another account in x-doorman-account than the one its credential acts for, as happens when the console's organization was switched in another tab. Reload and try again.
500internal_errorSomething went wrong on the server.

Example 200 response

{
  "id": "sic_01jc5f1a2b3c4d5e6f7g8h9j0k",
  "name": "Example Tools",
  "host": "app.example.net",
  "redirectUris": [
    "https://app.example.net/auth/callback"
  ],
  "startUrl": "https://app.example.net/auth/doorman",
  "tokenEndpointAuthMethod": "client_secret_basic",
  "verified": false,
  "verifiedAt": null,
  "proof": {
    "url": "https://app.example.net/.well-known/doorman-sign-in.json",
    "body": {
      "client_id": "sic_01jc5f1a2b3c4d5e6f7g8h9j0k",
      "proof": "ccccccccccccccccccccccccccccccccccccccccccc"
    }
  },
  "status": "active",
  "createdAt": "2026-11-05T10:05:00.000Z",
  "updatedAt": "2026-11-05T10:05:00.000Z"
}
curl -s -X PATCH "https://api.doorman.fyi/v1/sign-in/clients/sic_01jc5f1a2b3c4d5e6f7g8h9j0k" \
  -H "authorization: Bearer $DOORMAN_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "name": "Example Tools Workspace"
  }'

Delete a relying party

DELETE/v1/sign-in/clients/{clientId}

Access session: a console session only; an API key gets 403 session_required.

Disables the relying party. No address can sign in to it any more, and what was decided about it leaves every passport. A session the service itself keeps is the service's own.

OAuth: not available to delegated app tokens.

Part of Sign in with Doorman, which a deployment switches on. Where it is off this route answers 404 not_found, and features.signIn of GET /v1/me is false.

Also available as client.signIn.clients.delete in TypeScript and client.sign_in.clients.delete in Python.

Organizations: a member's console session needs apps:manage. See Roles and permissions.

Parameters
  • clientIdstring, in pathrequired

    The relying party. Example: sic_01jc5f1a2b3c4d5e6f7g8h9j0k.

Answers 204: Deleted.

Errors
StatusErrorMeaning
401unauthorizedThe credential was missing, malformed, revoked or belongs to an inactive account.
401session_invalidThe console session token could not be verified.
401session_expiredThe console session token has expired.
401session_claims_missingThe session token does not carry a verified email address.
403session_requiredAccount keys, developer apps, relying parties, installations, consent, approving a sign-in and the assistant require a console session. So does loosening the security policy, trusting a sender, releasing held mail, allowing a sign-in, letting agents sign in to new services alone or telling a service who owns an agent, unless the account allows its account keys to.
403account_suspendedThe account is suspended.
403account_deletedThe account was deleted.
403permission_deniedThe signed-in member's role in the organization lacks a permission the operation needs; permission names it. An admin of the organization can do it, or change the member's role.
403member_deactivatedThe signed-in person's access to the organization was deactivated, or they were removed from it. It holds from their next request, whatever their session token says. An admin of the organization can let a deactivated member in again.
404not_foundNo such resource for this caller, or no such route.
409account_mismatchThe request named another account in x-doorman-account than the one its credential acts for, as happens when the console's organization was switched in another tab. Reload and try again.
500internal_errorSomething went wrong on the server.
curl -s -X DELETE "https://api.doorman.fyi/v1/sign-in/clients/sic_01jc5f1a2b3c4d5e6f7g8h9j0k" \
  -H "authorization: Bearer $DOORMAN_API_KEY"

Rotate a relying party's secret

POST/v1/sign-in/clients/{clientId}/rotate-secret

Access session: a console session only; an API key gets 403 session_required.

Replaces the secret and returns the new one once. The one before it stops working at once. A public relying party has none (400 validation_error).

OAuth: not available to delegated app tokens.

Part of Sign in with Doorman, which a deployment switches on. Where it is off this route answers 404 not_found, and features.signIn of GET /v1/me is false.

Also available as client.signIn.clients.rotateSecret in TypeScript and client.sign_in.clients.rotate_secret in Python.

Organizations: a member's console session needs apps:manage. See Roles and permissions.

Parameters
  • clientIdstring, in pathrequired

    The relying party. Example: sic_01jc5f1a2b3c4d5e6f7g8h9j0k.

Answers 200: The new secret, shown once.

Response 200: SignInClientSecret

A relying party's new secret, shown once. The one before it stops working at once.

  • idstringrequired

    A registered relying party's identifier. Example: sic_01jc5f1a2b3c4d5e6f7g8h9j0k

  • clientSecretstringrequired

Errors
StatusErrorMeaning
400validation_errorA field is missing or invalid; the message names it.
401unauthorizedThe credential was missing, malformed, revoked or belongs to an inactive account.
401session_invalidThe console session token could not be verified.
401session_expiredThe console session token has expired.
401session_claims_missingThe session token does not carry a verified email address.
403session_requiredAccount keys, developer apps, relying parties, installations, consent, approving a sign-in and the assistant require a console session. So does loosening the security policy, trusting a sender, releasing held mail, allowing a sign-in, letting agents sign in to new services alone or telling a service who owns an agent, unless the account allows its account keys to.
403account_suspendedThe account is suspended.
403account_deletedThe account was deleted.
403permission_deniedThe signed-in member's role in the organization lacks a permission the operation needs; permission names it. An admin of the organization can do it, or change the member's role.
403member_deactivatedThe signed-in person's access to the organization was deactivated, or they were removed from it. It holds from their next request, whatever their session token says. An admin of the organization can let a deactivated member in again.
404not_foundNo such resource for this caller, or no such route.
409account_mismatchThe request named another account in x-doorman-account than the one its credential acts for, as happens when the console's organization was switched in another tab. Reload and try again.
500internal_errorSomething went wrong on the server.
curl -s -X POST "https://api.doorman.fyi/v1/sign-in/clients/sic_01jc5f1a2b3c4d5e6f7g8h9j0k/rotate-secret" \
  -H "authorization: Bearer $DOORMAN_API_KEY"

Verify a relying party's host

POST/v1/sign-in/clients/{clientId}/verify

Access session: a console session only; an API key gets 403 session_required.

Reads the proof file from the relying party's host (proof.url): one GET over HTTPS that follows no redirect and carries no credential, within 5 seconds and 8 KiB. When the file is JSON that carries this relying party's client_id and proof, the host is verified and addresses of any account can sign in to it. Anything else answers 409 host_proof_failed and changes nothing. A host on the developer's own machine cannot be verified (400 validation_error).

OAuth: not available to delegated app tokens.

Part of Sign in with Doorman, which a deployment switches on. Where it is off this route answers 404 not_found, and features.signIn of GET /v1/me is false.

Also available as client.signIn.clients.verify in TypeScript and client.sign_in.clients.verify in Python.

Organizations: a member's console session needs apps:manage. See Roles and permissions.

Parameters
  • clientIdstring, in pathrequired

    The relying party. Example: sic_01jc5f1a2b3c4d5e6f7g8h9j0k.

Answers 200: The relying party, now verified.

Response 200: SignInClient

A relying party a developer registered, without its secret.

  • idstringrequired

    A registered relying party's identifier. Example: sic_01jc5f1a2b3c4d5e6f7g8h9j0k

  • namestringrequired

  • hoststringrequired

  • redirectUrisstring[]required

  • startUrlstring | nullrequired

  • tokenEndpointAuthMethod"client_secret_basic" | "client_secret_post" | "none"required

  • verifiedbooleanrequired

    Whether the host proved it is the relying party's own. Until it does, only addresses of the account that registered it can sign in.

  • verifiedAtstring (date-time) | nullrequired

  • proofobject | nullrequired

    How the host proves it is the relying party's own; null for a host on the developer's own machine, which has nothing to prove.

  • urlstringrequired

    Serve the file here, over HTTPS, without a redirect.

  • bodyobjectrequired

    The file's JSON. Other fields beside these two are ignored.

  • client_idstringrequired

    A registered relying party's identifier. Example: sic_01jc5f1a2b3c4d5e6f7g8h9j0k

  • proofstringrequired

  • status"active" | "deleted"required

  • createdAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • updatedAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

Errors
StatusErrorMeaning
400validation_errorA field is missing or invalid; the message names it.
401unauthorizedThe credential was missing, malformed, revoked or belongs to an inactive account.
401session_invalidThe console session token could not be verified.
401session_expiredThe console session token has expired.
401session_claims_missingThe session token does not carry a verified email address.
403session_requiredAccount keys, developer apps, relying parties, installations, consent, approving a sign-in and the assistant require a console session. So does loosening the security policy, trusting a sender, releasing held mail, allowing a sign-in, letting agents sign in to new services alone or telling a service who owns an agent, unless the account allows its account keys to.
403account_suspendedThe account is suspended.
403account_deletedThe account was deleted.
403permission_deniedThe signed-in member's role in the organization lacks a permission the operation needs; permission names it. An admin of the organization can do it, or change the member's role.
403member_deactivatedThe signed-in person's access to the organization was deactivated, or they were removed from it. It holds from their next request, whatever their session token says. An admin of the organization can let a deactivated member in again.
404not_foundNo such resource for this caller, or no such route.
409host_proof_failedThe relying party's host did not serve the proof file it was given; the message says what was found instead. Publish the file and verify again.
409account_mismatchThe request named another account in x-doorman-account than the one its credential acts for, as happens when the console's organization was switched in another tab. Reload and try again.
429rate_limit_exceededA per-inbox or per-account rate limit; Retry-After and resetsAt say when to try again.
500internal_errorSomething went wrong on the server.

Example 200 response

{
  "id": "sic_01jc5f1a2b3c4d5e6f7g8h9j0k",
  "name": "Example Tools",
  "host": "app.example.net",
  "redirectUris": [
    "https://app.example.net/auth/callback"
  ],
  "startUrl": "https://app.example.net/auth/doorman",
  "tokenEndpointAuthMethod": "client_secret_basic",
  "verified": false,
  "verifiedAt": null,
  "proof": {
    "url": "https://app.example.net/.well-known/doorman-sign-in.json",
    "body": {
      "client_id": "sic_01jc5f1a2b3c4d5e6f7g8h9j0k",
      "proof": "ccccccccccccccccccccccccccccccccccccccccccc"
    }
  },
  "status": "active",
  "createdAt": "2026-11-05T10:05:00.000Z",
  "updatedAt": "2026-11-05T10:05:00.000Z"
}
curl -s -X POST "https://api.doorman.fyi/v1/sign-in/clients/sic_01jc5f1a2b3c4d5e6f7g8h9j0k/verify" \
  -H "authorization: Bearer $DOORMAN_API_KEY"

Read a sign-in that waits for the owner

GET/v1/sign-in/requests/{requestId}

Access session: a console session only; an API key gets 403 session_required.

Binds an unused authorization request to this account and console session, and returns who is asking, for which address and for what. It allows nothing. Each read replaces the request's csrf. A relying party that has not proved its host answers 404 to every account but the one that registered it.

OAuth: not available to delegated app tokens.

Part of Sign in with Doorman, which a deployment switches on. Where it is off this route answers 404 not_found, and features.signIn of GET /v1/me is false.

Also available as client.signIn.requests.get in TypeScript and client.sign_in.requests.get in Python.

Organizations: a member's console session needs inboxes:manage. See Roles and permissions.

Parameters
  • requestIdstring, in pathrequired

    The waiting authorization request. Example: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.

Answers 200: The session-bound request.

Response 200: SignInApproval

A sign-in that waits for the owner's decision, bound to the console session that read it. Nothing is allowed automatically.

  • requestIdstringrequired

    A waiting authorization request. Example: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

  • clientSignInClientSummaryrequired

  • inboxIdstring | nullrequired

    The address that would be signed in, when the request already says which: the browser opened a sign-in link for it, or the relying party named it. Null when the owner has to choose one.

  • inboxAddressstring | nullrequired

    Example: concierge@doorman.example

  • state"pending" | "allowed" | "blocked" | nullrequired

    What was decided before about this address at this relying party; null when nothing was, or when no address is named yet.

  • shareOwnerbooleanrequired

    Whether this relying party is already told who owns the agent.

  • scopes("openid" | "email" | "profile" | "owner_profile" | "owner_email")[]required

    What the relying party asked to be told.

  • ownerRequestedbooleanrequired

    Whether it asked who owns the agent. The owner answers that separately, with shareOwner.

  • redirectHoststringrequired

    Where the browser goes back to once the owner decides. Example: app.example.net

  • expiresAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • csrfstringrequired

    Sent back with the decision. Each read replaces it. Example: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

Errors
StatusErrorMeaning
401unauthorizedThe credential was missing, malformed, revoked or belongs to an inactive account.
401session_invalidThe console session token could not be verified.
401session_expiredThe console session token has expired.
401session_claims_missingThe session token does not carry a verified email address.
403session_requiredAccount keys, developer apps, relying parties, installations, consent, approving a sign-in and the assistant require a console session. So does loosening the security policy, trusting a sender, releasing held mail, allowing a sign-in, letting agents sign in to new services alone or telling a service who owns an agent, unless the account allows its account keys to.
403account_suspendedThe account is suspended.
403account_deletedThe account was deleted.
403permission_deniedThe signed-in member's role in the organization lacks a permission the operation needs; permission names it. An admin of the organization can do it, or change the member's role.
403member_deactivatedThe signed-in person's access to the organization was deactivated, or they were removed from it. It holds from their next request, whatever their session token says. An admin of the organization can let a deactivated member in again.
404not_foundNo such resource for this caller, or no such route.
409account_mismatchThe request named another account in x-doorman-account than the one its credential acts for, as happens when the console's organization was switched in another tab. Reload and try again.
500internal_errorSomething went wrong on the server.

Example 200 response

{
  "requestId": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "client": {
    "id": "sic_01jc5f1a2b3c4d5e6f7g8h9j0k",
    "name": "Example Tools",
    "host": "app.example.net",
    "verified": true
  },
  "inboxId": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z",
  "inboxAddress": "concierge@doorman.example",
  "state": null,
  "shareOwner": false,
  "scopes": [
    "openid",
    "email"
  ],
  "ownerRequested": false,
  "redirectHost": "app.example.net",
  "expiresAt": "2026-11-05T10:20:00.000Z",
  "csrf": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
}
curl -s "https://api.doorman.fyi/v1/sign-in/requests/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" \
  -H "authorization: Bearer $DOORMAN_API_KEY"

Decide a sign-in

POST/v1/sign-in/requests/{requestId}

Access session: a console session only; an API key gets 403 session_required.

Allows or denies once, with the request's csrf and the same console session. Allowing connects the address to the relying party, so its agents sign in there alone from then on, and sends the browser back with a code that lasts 60 seconds. Denying sends it back with access_denied and changes nothing else. Nothing but a person's session can call this.

OAuth: not available to delegated app tokens.

Part of Sign in with Doorman, which a deployment switches on. Where it is off this route answers 404 not_found, and features.signIn of GET /v1/me is false.

Also available as client.signIn.requests.decide in TypeScript and client.sign_in.requests.decide in Python.

Organizations: a member's console session needs inboxes:manage. See Roles and permissions.

Parameters
  • requestIdstring, in pathrequired

    The waiting authorization request. Example: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.

Request body (application/json): DecideSignIn

The owner's decision on one waiting sign-in. Allowing it allows the address at that relying party from then on, until the owner stops it.

  • decision"allow" | "deny"required

  • inboxIdstringoptional

    The address to sign in, when the request named none. Where it named one, leave it out or repeat it. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

  • shareOwnerbooleanoptional

    Whether the relying party is told who owns the agent, when it asks. Left out, a new connection does not, and an existing one keeps its choice.

  • csrfstringrequired

    A waiting authorization request. Example: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

Answers 200: Where the browser goes next.

Response 200: SignInDecision

Where the browser goes next: back to the relying party, with a code or with access_denied.

  • redirectUrlstringrequired

Errors
StatusErrorMeaning
400validation_errorA field is missing or invalid; the message names it.
400invalid_jsonThe request body is not JSON.
401unauthorizedThe credential was missing, malformed, revoked or belongs to an inactive account.
401session_invalidThe console session token could not be verified.
401session_expiredThe console session token has expired.
401session_claims_missingThe session token does not carry a verified email address.
403session_requiredAccount keys, developer apps, relying parties, installations, consent, approving a sign-in and the assistant require a console session. So does loosening the security policy, trusting a sender, releasing held mail, allowing a sign-in, letting agents sign in to new services alone or telling a service who owns an agent, unless the account allows its account keys to.
403account_suspendedThe account is suspended.
403account_deletedThe account was deleted.
403permission_deniedThe signed-in member's role in the organization lacks a permission the operation needs; permission names it. An admin of the organization can do it, or change the member's role.
403member_deactivatedThe signed-in person's access to the organization was deactivated, or they were removed from it. It holds from their next request, whatever their session token says. An admin of the organization can let a deactivated member in again.
404not_foundNo such resource for this caller, or no such route.
409limit_reachedThe abuse ceiling for inboxes, custom domains, keys, endpoints, services, relying parties, the services an address signs in to, the sends an inbox has waiting for its owner or the invitations an organization has open; delete, revoke or decide one first.
409account_mismatchThe request named another account in x-doorman-account than the one its credential acts for, as happens when the console's organization was switched in another tab. Reload and try again.
500internal_errorSomething went wrong on the server.

Example 200 response

{
  "redirectUrl": "https://app.example.net/auth/callback?state=af0ifjsldkj&iss=https%3A%2F%2Fid.doorman.example&code=dsc_zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz"
}
curl -s -X POST "https://api.doorman.fyi/v1/sign-in/requests/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" \
  -H "authorization: Bearer $DOORMAN_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "decision": "allow",
    "shareOwner": false,
    "csrf": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
  }'

POST/sign-in/links/read

Access public: no credential.

What a sign-in link is for, for the page that shows it before anyone continues. Reading spends nothing. An unknown, a used and an expired link all answer 404. Called by the web app's server; the link in the body is what it answers to.

OAuth: not available to delegated app tokens.

Part of Sign in with Doorman, which a deployment switches on. Where it is off this route answers 404 not_found, and features.signIn of GET /v1/me is false.

Also available as client.signIn.links.read in TypeScript and client.sign_in.links.read in Python.

Request body (application/json): SignInLinkRequest

A sign-in link, as the web app's server presents it for the browser that opened it.

  • linkstringrequired

    The secret a sign-in link carries: single use, 5 minutes. Example: dsl_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Answers 200: The address and the relying party the link is for.

Response 200: SignInLinkPreview

What a sign-in link is for, so the page can say it before anyone continues. It carries no secret.

  • inboxAddressstringrequired

    Example: concierge@doorman.example

  • clientSignInClientSummaryrequired

  • expiresAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

Errors
StatusErrorMeaning
400validation_errorA field is missing or invalid; the message names it.
400invalid_jsonThe request body is not JSON.
404not_foundNo such resource for this caller, or no such route.
429rate_limit_exceededA per-inbox or per-account rate limit; Retry-After and resetsAt say when to try again.
500internal_errorSomething went wrong on the server.

Example 200 response

{
  "inboxAddress": "concierge@doorman.example",
  "client": {
    "id": "sic_01jc5f1a2b3c4d5e6f7g8h9j0k",
    "name": "Example Tools",
    "host": "app.example.net",
    "verified": true
  },
  "expiresAt": "2026-11-05T10:10:00.000Z"
}
curl -s -X POST "https://api.doorman.fyi/sign-in/links/read" \
  -H "content-type: application/json" \
  -d '{
    "link": "dsl_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
  }'

POST/sign-in/links/open

Access public: no credential.

Spends a sign-in link, and returns a binding for the browser that opened it and where that browser continues. The binding lasts 5 minutes and finishes one sign-in, to the link's relying party only. The link is spent whatever happens next.

OAuth: not available to delegated app tokens.

Part of Sign in with Doorman, which a deployment switches on. Where it is off this route answers 404 not_found, and features.signIn of GET /v1/me is false.

Also available as client.signIn.links.open in TypeScript and client.sign_in.links.open in Python.

Request body (application/json): SignInLinkRequest

A sign-in link, as the web app's server presents it for the browser that opened it.

  • linkstringrequired

    The secret a sign-in link carries: single use, 5 minutes. Example: dsl_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Answers 200: The binding and where the browser continues.

Response 200: SignInLinkOpened

The link is spent. The web app keeps binding in a short-lived cookie on its own origin and sends the browser to startUrl.

  • bindingstringrequired

    What ties one browser to the sign-in it opened. Example: dsb_yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy

  • bindingExpiresAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • startUrlstringrequired

    Where the browser continues: the relying party's start URL with iss and login_hint, or its own front page when it registered none.

Errors
StatusErrorMeaning
400validation_errorA field is missing or invalid; the message names it.
400invalid_jsonThe request body is not JSON.
404not_foundNo such resource for this caller, or no such route.
429rate_limit_exceededA per-inbox or per-account rate limit; Retry-After and resetsAt say when to try again.
500internal_errorSomething went wrong on the server.

Example 200 response

{
  "binding": "dsb_yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy",
  "bindingExpiresAt": "2026-11-05T10:10:00.000Z",
  "startUrl": "https://app.example.net/auth/doorman?iss=https%3A%2F%2Fid.doorman.example&login_hint=concierge%40doorman.example"
}
curl -s -X POST "https://api.doorman.fyi/sign-in/links/open" \
  -H "content-type: application/json" \
  -d '{
    "link": "dsl_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
  }'

Resume a sign-in

POST/sign-in/requests/resume

Access public: no credential.

Finishes a waiting authorization request for the browser it belongs to. With the binding of a sign-in link opened for the same relying party, and the address allowed there, the answer sends the browser back with a code. Without one, the owner has to decide in the console; a request that asked for no interaction is sent back with login_required instead. Everything is read again as it is now: an address the owner stopped goes back with access_denied.

OAuth: not available to delegated app tokens.

Part of Sign in with Doorman, which a deployment switches on. Where it is off this route answers 404 not_found, and features.signIn of GET /v1/me is false.

Also available as client.signIn.requests.resume in TypeScript and client.sign_in.requests.resume in Python.

Request body (application/json): ResumeSignIn

A waiting authorization request, and the binding its browser holds when it opened a sign-in link.

  • requestIdstringrequired

    A waiting authorization request. Example: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

  • bindingstringoptional

    From the browser's cookie. Left out when the browser holds none. Example: dsb_yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy

Answers 200: Where the browser goes next.

Response 200: SignInResumed

What became of a waiting authorization request: the browser goes back to the relying party, or the owner has to decide first.

  • status"redirect" | "approval_required"required

  • redirectUrlstring | nullrequired

    redirect only: back to the relying party, with a code or with an error.

  • approvalUrlstring | nullrequired

    approval_required only: where the owner decides, in the console.

Errors
StatusErrorMeaning
400validation_errorA field is missing or invalid; the message names it.
400invalid_jsonThe request body is not JSON.
404not_foundNo such resource for this caller, or no such route.
429rate_limit_exceededA per-inbox or per-account rate limit; Retry-After and resetsAt say when to try again.
500internal_errorSomething went wrong on the server.

Example 200 response

{
  "status": "redirect",
  "redirectUrl": "https://app.example.net/auth/callback?state=af0ifjsldkj&iss=https%3A%2F%2Fid.doorman.example&code=dsc_zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz",
  "approvalUrl": null
}
curl -s -X POST "https://api.doorman.fyi/sign-in/requests/resume" \
  -H "content-type: application/json" \
  -d '{
    "requestId": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    "binding": "dsb_yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy"
  }'

Up Down to move, Enter to open, Esc to close