---
title: "Start your own test sign-in: open `url`, sign in at your identity provider, and come back to organization settings."
method: POST
path: "/v1/organizations/current/sso/test"
tags: ["organizations"]
---

# Start your own test sign-in: open \`url\`, sign in at your identity provider, and come back to organization settings.

`POST /v1/organizations/current/sso/test`

## Request

- Base URL: `https://api.50heads.com`
- URL: `https://api.50heads.com/v1/organizations/current/sso/test`
- Auth: HTTP bearer

Organization admins only (403 `organization_admin_required`), on a browser session with a fresh proof in the `x-50h-reauth` header (401 `reauth_required`). It needs a person: API keys, connected apps and service accounts get 403 `session_required`. Every change is written to the organization's audit. The result lands on the connection (`lastTest`) and in the error log; the page you come back to has `sso_test=ok` or an error code.

## Response `200`

OK

- OrganizationSsoTestResponse
  - `url` string, required
  - `expiresAt` string, required

## Other responses

- `401`: No key or token, or it expired or was revoked.
- `403`: The key or token lacks the scope (`insufficient_scope`), or the action is not allowed.
- `429`: Too many requests; wait for Retry-After.

---

[API](https://skmtc.dev/50heads/apis/50heads-api.md) · [All operations](https://skmtc.dev/50heads/apis/50heads-api/llms.txt) · [OpenAPI document](https://skmtc.dev/50heads/apis/50heads-api/revisions/20175e8b00e3?raw)
