# Identity: Who is acting — a person, a program or an agent — and what it may reach — Hanzo AI

> Who is acting — a person, a program or an agent — and what it may reach.

Hanzo OS

# Identity

Who is acting — a person, a program or an agent — and what it may reach.

One issuer for every principal. A person signs in, a program trades its client credentials for a token, and every request carries the org it acts for. Keys are scoped to what they may reach, and secrets are held per org, never in the code that uses them.

## API

Operations on api.hanzo.ai. One key reaches every layer.

Method

Path

What it does

`POST`

`/v1/iam/oauth/token`

Exchanges a sign-in code, a refresh token or client credentials for tokens.

`GET`

`/v1/iam/oauth/userinfo`

Returns the profile claims for whoever the access token belongs to.

`POST`

`/v1/iam/keys`

Issues an API key.

`GET`

`/v1/kms/secrets`

Lists the secrets the org holds, without their values.

`POST`

`/v1/kms/secrets`

Stores or replaces one secret in the org.

## Try it

```
curl https://api.hanzo.ai/v1/iam/oauth/token \ -d grant_type=client_credentials \ -d client_id=$CLIENT_ID \ -d client_secret=$CLIENT_SECRET curl https://api.hanzo.ai/v1/iam/oauth/userinfo \ -H "Authorization: Bearer $ACCESS_TOKEN"
```

## Docs

[IAM API](https://docs.hanzo.ai/docs/openapi/iam)[KMS API](https://docs.hanzo.ai/docs/openapi/kms)[IAM SDK](https://docs.hanzo.ai/docs/sdks/iam)

## On this site

[IAM](https://hanzo.ai/iam)[Identity](https://hanzo.ai/identity)[Authz](https://hanzo.ai/authz)[KMS](https://hanzo.ai/kms)[HSM](https://hanzo.ai/hsm)[IDV](https://hanzo.ai/idv)

## The stack

- CompanyThe legal body: formation, cap table, documents and filings, as operations.
- AgentsWorkers the company keeps: a model, instructions, tools and a budget.
- ModelsEvery model behind one endpoint and one key.
- MemoryWhat the company knows, and when it knew it.
- IdentityWho is acting — a person, a program or an agent — and what it may reach.
- MachinesReal computers, leased by the org, for agents and for the software they ship.

[RecordEvery act on every layer, by a person or an agent, in one trail.](https://hanzo.ai/products/record)
