Auth

List the caller's workspaces

The workspaces the presented credential can act in. For Clerk tokens: all workspaces (Clerk organizations) the authenticated user belongs to. For Monid API keys: exactly the key's bound workspace (an API key can only act in the workspace it was created in). Requires an authenticated user but NOT a selected workspace — use this to discover which workspace to select.

get/v1/auth/workspaces

Response

The workspaces the credential can act in — the user's memberships for Clerk tokens, the single bound workspace for API keys

Example response

{
  "workspaces": [
    {
      "workspaceId": "org_2abcDEFghiJKLmnop",
      "slug": "acme-inc"
    }
  ]
}

Changes

Changed in 3 of the 22 revisions of this API.423

    • ●

      added the new IDENTITY_ALREADY_LINKED enum value to the response property for the response status

      response-property-enum-value-added

    • ●

      added the new IDENTITY_ALREADY_LINKED enum value to the response property for the response status

      response-property-enum-value-added

    • ●

      added the new IDENTITY_ALREADY_LINKED enum value to the response property for the response status

      response-property-enum-value-added

    • ●

      added the new IDENTITY_LINK_RATE_LIMITED enum value to the response property for the response status

      response-property-enum-value-added

    • ●

      added the new IDENTITY_LINK_RATE_LIMITED enum value to the response property for the response status

      response-property-enum-value-added

    • ●

      added the new IDENTITY_LINK_RATE_LIMITED enum value to the response property for the response status

      response-property-enum-value-added

    • ●

      added the new IDENTITY_LINK_REQUIRES_SESSION enum value to the response property for the response status

      response-property-enum-value-added

    • ●

      added the new IDENTITY_LINK_REQUIRES_SESSION enum value to the response property for the response status

      response-property-enum-value-added

    • ●

      added the new IDENTITY_LINK_REQUIRES_SESSION enum value to the response property for the response status

      response-property-enum-value-added

    • ●

      added the new IDENTITY_LINK_STATE_INVALID enum value to the response property for the response status

      response-property-enum-value-added

    • ●

      added the new IDENTITY_LINK_STATE_INVALID enum value to the response property for the response status

      response-property-enum-value-added

    • ●

      added the new IDENTITY_LINK_STATE_INVALID enum value to the response property for the response status

      response-property-enum-value-added

    • ●

      added the new IDENTITY_PROVIDER_UNAVAILABLE enum value to the response property for the response status

      response-property-enum-value-added

    • ●

      added the new IDENTITY_PROVIDER_UNAVAILABLE enum value to the response property for the response status

      response-property-enum-value-added

    • ●

      added the new IDENTITY_PROVIDER_UNAVAILABLE enum value to the response property for the response status

      response-property-enum-value-added

    • ●

      added the new IDENTITY_PROVIDER_UNKNOWN enum value to the response property for the response status

      response-property-enum-value-added

    • ●

      added the new IDENTITY_PROVIDER_UNKNOWN enum value to the response property for the response status

      response-property-enum-value-added

    • ●

      added the new IDENTITY_PROVIDER_UNKNOWN enum value to the response property for the response status

      response-property-enum-value-added

    • ●

      added the new IDENTITY_REQUIRED enum value to the response property for the response status

      response-property-enum-value-added

    • ●

      added the new IDENTITY_REQUIRED enum value to the response property for the response status

      response-property-enum-value-added

    • ●

      added the new IDENTITY_REQUIRED enum value to the response property for the response status

      response-property-enum-value-added

    • ●

      added the new IDENTITY_USER_ALREADY_LINKED enum value to the response property for the response status

      response-property-enum-value-added

    • ●

      added the new IDENTITY_USER_ALREADY_LINKED enum value to the response property for the response status

      response-property-enum-value-added

    • ●

      added the new IDENTITY_USER_ALREADY_LINKED enum value to the response property for the response status

      response-property-enum-value-added

    • ●

      added the new IDENTITY_VERIFICATION_FAILED enum value to the response property for the response status

      response-property-enum-value-added

    • ●

      added the new IDENTITY_VERIFICATION_FAILED enum value to the response property for the response status

      response-property-enum-value-added

    • ●

      added the new IDENTITY_VERIFICATION_FAILED enum value to the response property for the response status

      response-property-enum-value-added

    • ●

      added the new INSUFFICIENT_SCOPE enum value to the response property for the response status

      response-property-enum-value-added

    • ●

      added the new INSUFFICIENT_SCOPE enum value to the response property for the response status

      response-property-enum-value-added

    • ●

      added the new INSUFFICIENT_SCOPE enum value to the response property for the response status

      response-property-enum-value-added

    • ●

      added the new PROMO_IDENTITY_REDEEMED enum value to the response property for the response status

      response-property-enum-value-added

    • ●

      added the new PROMO_IDENTITY_REDEEMED enum value to the response property for the response status

      response-property-enum-value-added

    • ●

      added the new PROMO_IDENTITY_REDEEMED enum value to the response property for the response status

      response-property-enum-value-added

    • ●

      added the new PROMO_REDEEM_REQUIRES_SESSION enum value to the response property for the response status

      response-property-enum-value-added

    • ●

      added the new PROMO_REDEEM_REQUIRES_SESSION enum value to the response property for the response status

      response-property-enum-value-added

    • ●

      added the new PROMO_REDEEM_REQUIRES_SESSION enum value to the response property for the response status

      response-property-enum-value-added

    • ●

      added the new WALLET_INSUFFICIENT_FUNDS enum value to the response property for the response status

      response-property-enum-value-added

    • ●

      added the new WALLET_INSUFFICIENT_FUNDS enum value to the response property for the response status

      response-property-enum-value-added

    • ●

      added the new WALLET_INSUFFICIENT_FUNDS enum value to the response property for the response status

      response-property-enum-value-added

    • ●

      added the new X402_UNBOUNDED_PRICE enum value to the response property for the response status

      response-property-enum-value-added

    • ●

      added the new X402_UNBOUNDED_PRICE enum value to the response property for the response status

      response-property-enum-value-added

    • ●

      added the new X402_UNBOUNDED_PRICE enum value to the response property for the response status

      response-property-enum-value-added

    • ○

      added the optional property to the response with the status

      response-optional-property-added

    • ○

      added the optional property to the response with the status

      response-optional-property-added

    • ○

      added the optional property to the response with the status

      response-optional-property-added