IAM API

Your API keys

The key’s own person: who they are in Cloud, and their keys. Keys are made in Yet — Preferences → API keys — never with another key: a key that could make keys would outlive its own revocation, were it leaked.

URL base https://cloud.yet.com.br/v1

As descrições dos endpoints estão em inglês.

Who the key is

GET/v1/me

Its person, their company, and their role in Cloud — everywhere, and by environment.

Requisição
curl https://cloud.yet.com.br/v1/me \
  -H "Authorization: Bearer $YET_API_KEY"
Resposta · 200
{
  "email": "ana@acme.dev",
  "workspace": "acme",
  "role": "admin",
  "admin": true,
  "roles": {
    "*": "admin"
  }
}

List your keys

GET/v1/keys

The person’s own keys; only each one’s first characters are kept.

Requisição
curl https://cloud.yet.com.br/v1/keys \
  -H "Authorization: Bearer $YET_API_KEY"
Resposta · 200
[
  {
    "id": "ky_01J9",
    "email": "ana@acme.dev",
    "name": "terraform",
    "prefix": "yet_acme_6bffe6",
    "created_at": "2026-10-23T12:00:00Z",
    "last_used_at": "2026-10-23T12:00:00Z"
  }
]

Revoke one of your keys

DELETE/v1/keys/{id}

It stops working at once.

Requisição
curl -X DELETE https://cloud.yet.com.br/v1/keys/{id} \
  -H "Authorization: Bearer $YET_API_KEY"
Resposta · 204 Sem conteúdo