Verify Key
Check if an email + SSH key pair has been verified. Returns the user’s organization list for org selection.Endpoint
Request
| Field | Type | Required | Description |
|---|---|---|---|
email | string | Yes | User’s email address |
ssh_public_key | string | Yes | SSH public key submitted during initiation |
Response
Verified (200)
| Field | Description |
|---|---|
verified | Whether the SSH key pair is verified |
is_active | Whether the user account is active |
user_id | The authenticated user’s ID |
key_id | The SSH key record ID |
orgs | List of organizations the user belongs to |
orgs[].org_id | Organization ID (use this when creating API keys) |
orgs[].name | Organization display name |
orgs[].role | User’s role: admin, member, or owner |
Not verified (401)
Polling pattern
Poll this endpoint after calling POST /api/shell-auth untilverified is true:
Org selection
Theorgs array contains all organizations the user has access to. Use this to present an org picker to the user before creating an API key.
- Users with one org can skip the picker
- Users with multiple orgs should select which org to create the API key for
- The
rolefield indicates the user’s permissions in each org
Example
Next step
Once verified, create an API key with POST /api/shell-auth/api-keys, passing the selectedorg_name.