# Identity and keys API reference

> Who a key acts as, API keys, saved SSH public keys and your organization's invitations.

Source: https://legion.ambient.xyz/docs/api/identity

- [Get the caller](https://legion.ambient.xyz/docs/api/identity/get-me): `GET /v1/me`. Returns the user, organization and permissions behind the credential, and access: whether the person may use Legion during the beta, and the verified…
- [List the caller's API keys](https://legion.ambient.xyz/docs/api/identity/list-api-keys): `GET /v1/api-keys`. Lists API keys the caller created in their organization.
- [Create an API key](https://legion.ambient.xyz/docs/api/identity/create-api-key): `POST /v1/api-keys`. Creates an API key for the caller in the caller's organization.
- [Revoke an API key](https://legion.ambient.xyz/docs/api/identity/revoke-api-key): `DELETE /v1/api-keys/{api_key_id}`. Revokes one of the caller's API keys.
- [List the caller's saved SSH public keys](https://legion.ambient.xyz/docs/api/identity/list-ssh-keys): `GET /v1/ssh-keys`. Lists the SSH public keys the caller saved in their organization, oldest first.
- [Save an SSH public key](https://legion.ambient.xyz/docs/api/identity/add-ssh-key): `POST /v1/ssh-keys`. Saves one OpenSSH public key under a label of the caller's choosing.
- [Delete a saved SSH public key](https://legion.ambient.xyz/docs/api/identity/delete-ssh-key): `DELETE /v1/ssh-keys/{ssh_key_id}`. Deletes one of the caller's saved keys.
- [List pending invitations](https://legion.ambient.xyz/docs/api/identity/list-invitations): `GET /v1/invitations`. Lists the organization's invitations that are neither accepted, revoked nor expired.
- [Invite a person to the organization](https://legion.ambient.xyz/docs/api/identity/create-invitation): `POST /v1/invitations`. The person joins the organization by accepting the invitation (acceptInvitation, or the onboarding Invitations step) after signing in with a verified…
- [Revoke a pending invitation](https://legion.ambient.xyz/docs/api/identity/revoke-invitation): `DELETE /v1/invitations/{invitation_id}`. Revokes the invitation, so it can no longer be accepted by the person it was sent to.
- [Email an invitation again](https://legion.ambient.xyz/docs/api/identity/resend-invitation): `POST /v1/invitations/{invitation_id}/resend`. Sends the invitation email again.
- [List the organization's members](https://legion.ambient.xyz/docs/api/identity/list-members): `GET /v1/members`. The people in the caller's organization: each person's ID, name and email, role, when they joined and, when Legion has seen them, last_active_at.
