Hanzo
CLIIAM

IAM

166 `hanzo` commands for IAM, each calling one operation on api.hanzo.ai.

Package iam is Hanzo's identity provider: users, organizations, applications, and the OIDC/OAuth2 endpoints every Hanzo service authenticates against.

166 commands · API reference →

CommandCallsWhat it does
hanzo iam .well-known jwksGET /v1/iam/.well-known/jwksPublishes the public keys that verify the tokens issued here — the one URL you point a service at so it can check a…
hanzo iam .well-known oauth-authorization-serverGET /v1/iam/.well-known/oauth-authorization-serverReturns the OpenID Connect discovery document — the one URL you point a standards-compliant client at so it can find…
hanzo iam .well-known openid-configurationGET /v1/iam/.well-known/openid-configurationReturns the OpenID Connect discovery document — the one URL you point a standards-compliant client at so it can find…
hanzo iam account getGET /v1/iam/accountReturns the signed-in person's own account and the organization they belong to — what a console reads to draw the…
hanzo iam account replacePUT /v1/iam/accountSaves the calling person's own profile — the name they are shown by, their picture, a line about themselves and a link.
hanzo iam add-membershipPOST /v1/iam/add-membershipLets a person or an application act in an organization.
hanzo iam admin applications upsertPOST /v1/iam/admin/applications/upsertCreates an application or updates it in place, so a deployment can declare the applications it needs and run the same…
hanzo iam admin provisionPOST /v1/iam/admin/provisionSets up an account on someone's behalf — the same onboarding a person gets themselves, driven by one of your own…
hanzo iam admin users upsertPOST /v1/iam/admin/users/upsertCreates a person or updates them in place, so a deployment can declare the accounts it needs and re-run that…
hanzo iam applications delete --name <name> --owner <owner>POST /v1/iam/applications/deleteRemoves an application.
hanzo iam applications updatePOST /v1/iam/applications/updateChanges an application's display, its sign-in methods and the redirect URIs it may return to — the call that makes…
hanzo iam applications get --owner <owner>GET /v1/iam/applicationsReturns the applications in one organization, newest first — each product or site your people sign in to, with the…
hanzo iam applications createPOST /v1/iam/applicationsRegisters an application in your organization — one product or site your people sign in to, with its own client…
hanzo iam assumePOST /v1/iam/assumeSteps a platform operator into an organization: it returns their own access token re-scoped to that tenant, so they see…
hanzo iam audit-logs deletePOST /v1/iam/audit-logs/deleteRemoves an audit entry.
hanzo iam audit-logs getPOST /v1/iam/audit-logs/getReturns one audit entry in full: the action, the person or key behind it, and the request it came in on.
hanzo iam audit-logs updatePOST /v1/iam/audit-logs/updateCorrects an audit entry.
hanzo iam audit-logs createPOST /v1/iam/audit-logsRecords an audit entry, so activity from your own systems lands in the same trail as everything the Hanzo Cloud records…
hanzo iam auth applicationGET /v1/iam/auth/applicationReturns everything a login screen needs to draw itself for one application: its branding, and each sign-in method it…
hanzo iam auth methodsGET /v1/iam/auth/methodsReturns the sign-in methods one application actually has switched on, so a login screen can render the right buttons…
hanzo iam certs deletePOST /v1/iam/certs/deleteRemoves a signing certificate.
hanzo iam certs getPOST /v1/iam/certs/getReturns one signing certificate — its algorithm, its validity window and its public half.
hanzo iam certs updatePOST /v1/iam/certs/updateChanges a signing certificate's settings.
hanzo iam certs createPOST /v1/iam/certsAdds a signing certificate your applications can verify tokens against — the call you make to stage the next one before…
hanzo iam consent getGET /v1/iam/consentReturns the calling person's own privacy and communication choices.
hanzo iam consent replacePUT /v1/iam/consentRecords the calling person's privacy and communication choices.
hanzo iam delete-membershipPOST /v1/iam/delete-membershipTakes away a person's or an application's right to act in an organization.
hanzo iam delete-mfaPOST /v1/iam/delete-mfaTurns a factor off, so sign-in stops asking for it.
hanzo iam get-accountGET /v1/iam/get-accountReturns the signed-in person's own account and the organization they belong to — what a console reads to draw the…
hanzo iam get-app-loginGET /v1/iam/get-app-loginReturns everything a login screen needs to draw itself for one application: its branding, and each sign-in method it…
hanzo iam get-applicationGET /v1/iam/get-applicationReads one record — the older spelling of the single reads on the REST surface, over the same data and the same…
hanzo iam get-applicationsGET /v1/iam/get-applicationsLists one kind of record in your organization — the older spelling of the collection reads on the REST surface, over…
hanzo iam get-certGET /v1/iam/get-certReads one record — the older spelling of the single reads on the REST surface, over the same data and the same…
hanzo iam get-certsGET /v1/iam/get-certsLists one kind of record in your organization — the older spelling of the collection reads on the REST surface, over…
hanzo iam get-global-usersGET /v1/iam/get-global-usersLists one kind of record in your organization — the older spelling of the collection reads on the REST surface, over…
hanzo iam get-invitationsGET /v1/iam/get-invitationsLists one kind of record in your organization — the older spelling of the collection reads on the REST surface, over…
hanzo iam get-membershipsGET /v1/iam/get-membershipsAnswers either question about who belongs where: which organizations one person can act in, or who can act in one…
hanzo iam get-organization-projectsGET /v1/iam/get-organization-projectsReturns one organization's projects — what a scope switcher lists so somebody can move between them.
hanzo iam get-organization-workspacesGET /v1/iam/get-organization-workspacesReturns one organization's workspaces — what a scope switcher lists so somebody can move between them.
hanzo iam get-organizationGET /v1/iam/get-organizationReads one record — the older spelling of the single reads on the REST surface, over the same data and the same…
hanzo iam get-organizationsGET /v1/iam/get-organizationsLists one kind of record in your organization — the older spelling of the collection reads on the REST surface, over…
hanzo iam get-permissionGET /v1/iam/get-permissionReads one record — the older spelling of the single reads on the REST surface, over the same data and the same…
hanzo iam get-permissionsGET /v1/iam/get-permissionsLists one kind of record in your organization — the older spelling of the collection reads on the REST surface, over…
hanzo iam get-providerGET /v1/iam/get-providerReads one record — the older spelling of the single reads on the REST surface, over the same data and the same…
hanzo iam get-providersGET /v1/iam/get-providersLists one kind of record in your organization — the older spelling of the collection reads on the REST surface, over…
hanzo iam get-recordsGET /v1/iam/get-recordsLists one kind of record in your organization — the older spelling of the collection reads on the REST surface, over…
hanzo iam get-roleGET /v1/iam/get-roleReads one record — the older spelling of the single reads on the REST surface, over the same data and the same…
hanzo iam get-rolesGET /v1/iam/get-rolesLists one kind of record in your organization — the older spelling of the collection reads on the REST surface, over…
hanzo iam get-userGET /v1/iam/get-userReads one person, two ways.
hanzo iam get-usersGET /v1/iam/get-usersLists one kind of record in your organization — the older spelling of the collection reads on the REST surface, over…
hanzo iam invitations deletePOST /v1/iam/invitations/deleteWithdraws an invitation.
hanzo iam invitations getPOST /v1/iam/invitations/getReturns one invitation: who it is for, what it grants on acceptance, and when it expires.
hanzo iam invitations updatePOST /v1/iam/invitations/updateChanges an invitation's terms — the role it grants, how many may redeem it, or when it expires.
hanzo iam invitations createPOST /v1/iam/invitationsIssues an invitation to join your organization — the code or link a new member redeems, with the role they arrive…
hanzo iam issue-user-tokenPOST /v1/iam/issue-user-tokenMints an access token for the ?id=&lt;owner&gt;/&lt;name&gt; target user (optional ?aud= resource, RFC 8707), issued by the…
hanzo iam keys deletePOST /v1/iam/keys/deleteRevokes an API key.
hanzo iam keys mintPOST /v1/iam/keys/mint(re)generates the target user's key of the requested TYPE and returns it once, over the shared authorizeMinter +…
hanzo iam keys revokePOST /v1/iam/keys/revokeClears the target user's key of the requested TYPE (immediate revoke).
hanzo iam keys updatePOST /v1/iam/keys/updateChanges what a key is called or what it may reach.
hanzo iam keys getGET /v1/iam/keysReturns your organization's API keys, newest first — what each is called, what it may reach, and its publishable half.
hanzo iam keys createPOST /v1/iam/keysIssues an API key.
hanzo iam linkPOST /v1/iam/linkStarts connecting another sign-in identity to the account you are already signed in as.
hanzo iam linked-accountsGET /v1/iam/linked-accountsReturns the sign-in identities linked to the calling person's account — every provider they can currently sign in with.
hanzo iam loginPOST /v1/iam/loginSigns a person in with the credential they typed, and — when the request is part of an OAuth flow — hands back the…
hanzo iam memberships getGET /v1/iam/membershipsAnswers either question about who belongs where: which organizations one person can act in, or who can act in one…
hanzo iam memberships createPOST /v1/iam/membershipsLets a person or an application act in an organization.
hanzo iam mfa disablePOST /v1/iam/mfa/disableTurns a factor off, so sign-in stops asking for it.
hanzo iam mfa preferredPOST /v1/iam/mfa/preferredPicks which second factor an account is asked for first when it has more than one.
hanzo iam mfa setup enablePOST /v1/iam/mfa/setup/enableFinishes the enrolment: from here the account's sign-ins ask for this factor.
hanzo iam mfa setup initiatePOST /v1/iam/mfa/setup/initiateStarts enrolling a factor and hands over whatever the person needs to prove they hold it: app a fresh secret and the…
hanzo iam mint-user-keysPOST /v1/iam/mint-user-keys(re)generates the target user's key of the requested TYPE and returns it once, over the shared authorizeMinter +…
hanzo iam oauth authorize getGET /v1/iam/oauth/authorizeStarts a sign-in — the address you send a browser to, and the beginning of every OAuth and OpenID Connect flow.
hanzo iam oauth authorize createPOST /v1/iam/oauth/authorizeStarts a sign-in — the address you send a browser to, and the beginning of every OAuth and OpenID Connect flow.
hanzo iam oauth callbackGET /v1/iam/oauth/callbackCompletes the round-trip: it resolves and burns the single-use transaction (checking expiry + browser binding),…
hanzo iam oauth device infoPOST /v1/iam/oauth/device/infoAnswers "what am I approving?" for a pending device code.
hanzo iam oauth device createPOST /v1/iam/oauth/deviceStarts a sign-in on a device with no browser and no keyboard — a TV, a CLI, a headless box.
hanzo iam oauth federation mfaPOST /v1/iam/oauth/federation/mfaCompletes a sign-in that came in through another identity provider and still owes a second factor.
hanzo iam oauth introspectPOST /v1/iam/oauth/introspectAnswers whether an access token is still good, and what it is good for — the check a resource server of yours makes…
hanzo iam oauth logout getGET /v1/iam/oauth/logoutEnds a sign-in and sends the browser somewhere sensible.
hanzo iam oauth logout createPOST /v1/iam/oauth/logoutEnds a sign-in and sends the browser somewhere sensible.
hanzo iam oauth revokePOST /v1/iam/oauth/revokeRetires a token before it expires — what you call when someone signs out or a credential may have leaked.
hanzo iam oauth tokenPOST /v1/iam/oauth/tokenExchanges what your application is holding for the tokens it needs — the one-time code from a finished sign-in, a…
hanzo iam oauth userinfo getGET /v1/iam/oauth/userinfoReturns the profile claims for whoever the access token belongs to — the standard OpenID Connect way to find out who is…
hanzo iam oauth userinfo createPOST /v1/iam/oauth/userinfoReturns the profile claims for whoever the access token belongs to — the standard OpenID Connect way to find out who is…
hanzo iam onboardPOST /v1/iam/onboardFinishes setting up the account of whoever is calling — it creates their organization if they have none and puts them…
hanzo iam organizations avatarPOST /v1/iam/organizations/avatarChanges how an organization appears across Hanzo: the square mark beside its name, as an uploaded image or as a single…
hanzo iam organizations deletePOST /v1/iam/organizations/deleteRemoves an organization and everything named inside it.
hanzo iam organizations searchGET /v1/iam/organizations/searchReturns the organizations you can act in, the ones you belong to first and the rest after, newest first, narrowed by an…
hanzo iam organizations updatePOST /v1/iam/organizations/updateChanges an organization's display, its defaults and the sign-in rules everyone in it inherits.
hanzo iam organizations getGET /v1/iam/organizationsReturns the organizations you can see, newest first.
hanzo iam organizations createPOST /v1/iam/organizationsMakes a new organization — the account your users, applications, roles, projects and workspaces are all named inside.
hanzo iam passwordPUT /v1/iam/passwordReplaces the calling person's password.
hanzo iam permissions deletePOST /v1/iam/permissions/deleteRevokes a permission.
hanzo iam permissions updatePOST /v1/iam/permissions/updateChanges who a permission grants to, what it allows, or the resources it covers.
hanzo iam permissions getGET /v1/iam/permissionsReturns the permissions in one organization, newest first — each one a grant saying which people or roles may do what,…
hanzo iam permissions createPOST /v1/iam/permissionsGrants a permission — the call that gives a person or a role the ability to do something.
hanzo iam preferencesPOST /v1/iam/preferencesSaves the calling person's own settings and returns the full set afterwards.
hanzo iam projects deletePOST /v1/iam/projects/deleteRemoves a project.
hanzo iam projects getPOST /v1/iam/projects/getReturns one project: what it is called and how it is set up.
hanzo iam projects updatePOST /v1/iam/projects/updateChanges a project's settings.
hanzo iam projects createPOST /v1/iam/projectsMakes a project inside your organization — the scope people pick between when their work is separated by product or…
hanzo iam providers delete --name <name> --owner <owner>POST /v1/iam/providers/deleteRemoves a provider.
hanzo iam providers get --name <name> --owner <owner>POST /v1/iam/providers/getReturns one provider: what it connects to and how it is configured.
hanzo iam providers updatePOST /v1/iam/providers/updateChanges a provider's settings or rotates the credentials it holds.
hanzo iam providers createPOST /v1/iam/providersAdds an identity provider your people can sign in with, or a service your applications send through — a social or…
hanzo iam registry jwksGET /v1/iam/registry/jwksPublishes the public key your registry uses to verify the tokens issued above — the one URL to configure so the…
hanzo iam registry token getGET /v1/iam/registry/tokenSigns a container client in to your registry.
hanzo iam registry token createPOST /v1/iam/registry/tokenSigns a container client in to your registry.
hanzo iam releasePOST /v1/iam/releaseSteps a platform operator back out: it returns their own access token with no organization assumed, which is the…
hanzo iam resolve-keyGET /v1/iam/resolve-keyAnswers which organization a PUBLISHABLE key belongs to — what a service of yours calls to attribute a request that…
hanzo iam revoke-user-keysPOST /v1/iam/revoke-user-keysClears the target user's key of the requested TYPE (immediate revoke).
hanzo iam roles deletePOST /v1/iam/roles/deleteRemoves a role.
hanzo iam roles getPOST /v1/iam/roles/getReturns one role: who is in it, and the roles it includes.
hanzo iam roles updatePOST /v1/iam/roles/updateChanges who is in a role, or which roles it includes.
hanzo iam roles createPOST /v1/iam/rolesMakes a role — a named group of people that permissions are granted to.
hanzo iam scim v2 ResourceTypes get <name>GET /v1/iam/scim/v2/ResourceTypes/{name}Returns one provisionable record kind in full.
hanzo iam scim v2 ResourceTypes listGET /v1/iam/scim/v2/ResourceTypesReturns the kinds of record this directory provisions and the address of each, so your identity provider discovers them…
hanzo iam scim v2 Schemas get <id>GET /v1/iam/scim/v2/Schemas/{id}Returns one attribute definition in full.
hanzo iam scim v2 Schemas listGET /v1/iam/scim/v2/SchemasReturns the attribute definitions this directory understands, so your identity provider knows which fields it may send…
hanzo iam scim v2 ServiceProviderConfigGET /v1/iam/scim/v2/ServiceProviderConfigTells your identity provider which parts of SCIM this directory supports, so it configures itself instead of you…
hanzo iam scim v2 Users owner get <owner> <name>GET /v1/iam/scim/v2/Users/{owner}/{name}Returns one person in the standard SCIM shape.
hanzo iam scim v2 Users owner set <owner> <name>PUT /v1/iam/scim/v2/Users/{owner}/{name}Overwrites a person's SCIM attributes with what your identity provider sends — how a change made there lands here.
hanzo iam scim v2 Users owner update <owner> <name>PATCH /v1/iam/scim/v2/Users/{owner}/{name}Applies a partial change from your identity provider — one attribute moved, not the whole record resent.
hanzo iam scim v2 Users owner rm <owner> <name>DELETE /v1/iam/scim/v2/Users/{owner}/{name}Deprovisions a person — how removing someone in your identity provider removes their access here.
hanzo iam scim v2 Users listGET /v1/iam/scim/v2/UsersReturns the people in your organization to your identity provider, in the standard SCIM shape, so an IdP can reconcile…
hanzo iam scim v2 Users createPOST /v1/iam/scim/v2/UsersProvisions a person from your identity provider — how a new hire gets an account here automatically when they are added…
hanzo iam send-verification-codePOST /v1/iam/send-verification-codeValidates the request and asks otp to get a code to the person.
hanzo iam service-accounts keys <name>POST /v1/iam/service-accounts/{name}/keysServes POST /v1/iam/service-accounts/:name/keys: mint a fresh key, invalidating the prior one, and return the new raw…
hanzo iam service-accounts rm <name>DELETE /v1/iam/service-accounts/{name}Serves DELETE /v1/iam/service-accounts/:name.
hanzo iam service-accounts listGET /v1/iam/service-accountsReturns your organization's service accounts — what each is called and when it was created.
hanzo iam service-accounts createPOST /v1/iam/service-accountsMakes a service account — an identity for a program rather than a person, for a script, a bot or a deployment that has…
hanzo iam sessions create --application <application> --name <name> --owner <owner>POST /v1/iam/sessions/createRecords a sign-in.
hanzo iam sessions delete --application <application> --name <name> --owner <owner>POST /v1/iam/sessions/deleteSigns a person out of one application — the session ends and every browser carrying it stops being authenticated.
hanzo iam sessions get --application <application> --name <name> --owner <owner>POST /v1/iam/sessions/getReturns one person's session in one application — when it began and which browsers or devices are still carrying it.
hanzo iam sessions list --owner <owner>POST /v1/iam/sessions/listReturns who is currently signed in to your organization, newest first, and can be narrowed to one person or one…
hanzo iam sessions update --application <application> --name <name> --owner <owner>POST /v1/iam/sessions/updateReplaces the set of browsers a session covers — signing out the ones you leave off while the session itself stays live.
hanzo iam set-preferred-mfaPOST /v1/iam/set-preferred-mfaPicks which second factor an account is asked for first when it has more than one.
hanzo iam signinPOST /v1/iam/signinCompletes a sign-in: it exchanges the one-time code your application was handed at the end of the login flow for a live…
hanzo iam signupPOST /v1/iam/signupCreates an account from the sign-up form and applies the application's own sign-up rules — whether self-service…
hanzo iam tokens delete --name <name> --owner <owner>POST /v1/iam/tokens/deleteRevokes an access token.
hanzo iam tokens get --name <name> --owner <owner>POST /v1/iam/tokens/getReturns one access token: who and what it was issued to, and when it expires.
hanzo iam tokens issuePOST /v1/iam/tokens/issueMints an access token for the ?id=&lt;owner&gt;/&lt;name&gt; target user (optional ?aud= resource, RFC 8707), issued by the…
hanzo iam tokens updatePOST /v1/iam/tokens/updateChanges an access token's scope or expiry.
hanzo iam tokens createPOST /v1/iam/tokensRecords an access token — the credential an application or integration presents on a caller's behalf.
hanzo iam unlinkPOST /v1/iam/unlinkDisconnects one sign-in identity from an account, so that provider can no longer be used to sign in as that person.
hanzo iam update-preferencesPOST /v1/iam/update-preferencesSaves the calling person's own settings and returns the full set afterwards.
hanzo iam users delete --name <name> --owner <owner>POST /v1/iam/users/deleteRemoves a person from your organization.
hanzo iam users updatePOST /v1/iam/users/updateChanges a person's profile, their roles, or the credentials they sign in with.
hanzo iam users get --owner <owner>GET /v1/iam/usersReturns a page of the people in your organization, with the total so you can page through the rest.
hanzo iam users createPOST /v1/iam/usersAdds a person to your organization.
hanzo iam verification-codesPOST /v1/iam/verification-codesValidates the request and asks otp to get a code to the person.
hanzo iam web3 nonceGET /v1/iam/web3/nonceStarts a wallet sign-in: it returns a one-time challenge for the wallet to sign.
hanzo iam web3 verifyPOST /v1/iam/web3/verifyCompletes a wallet sign-in: it verifies the signed challenge and, if it holds, signs the wallet's owner in.
hanzo iam webauthn-credentials delete --name <name> --owner <owner>POST /v1/iam/webauthn-credentials/deleteRemoves a passkey or security key — what you call when a device is lost.
hanzo iam webauthn-credentials get --name <name> --owner <owner>POST /v1/iam/webauthn-credentials/getReturns one passkey or security key: whose it is, what device it lives on, and when it was registered.
hanzo iam webauthn-credentials updatePOST /v1/iam/webauthn-credentials/updateRenames a registered passkey or security key, so a person can tell their devices apart.
hanzo iam webauthn-credentials createPOST /v1/iam/webauthn-credentialsRegisters a passkey or security key for a person, so they can sign in with their device instead of a password.
hanzo iam webauthn signin beginGET /v1/iam/webauthn/signin/beginStarts a passkey sign-in: it returns the challenge the person's authenticator signs.
hanzo iam webauthn signin finishPOST /v1/iam/webauthn/signin/finishVerifies the signed challenge and signs the person in.
hanzo iam webauthn signup beginGET /v1/iam/webauthn/signup/beginStarts enrolling a passkey for the signed-in person: it returns the options their browser hands to the authenticator.
hanzo iam webauthn signup finishPOST /v1/iam/webauthn/signup/finishVerifies the newly created passkey and stores it, so the person can sign in with their device from then on.
hanzo iam whoamiGET /v1/iam/whoamiTells you who the current caller is — the lightweight check a page makes on load to decide whether to render signed-in…
hanzo iam workspaces deletePOST /v1/iam/workspaces/deleteRemoves a workspace.
hanzo iam workspaces getPOST /v1/iam/workspaces/getReturns one workspace: what it is called and how it is set up.
hanzo iam workspaces updatePOST /v1/iam/workspaces/updateChanges a workspace's settings.
hanzo iam workspaces createPOST /v1/iam/workspacesMakes a workspace inside your organization — the scope a team works in, alongside projects rather than instead of them.

How is this guide?