# Get organization code

Canonical page: https://docs.ovok.com/api/organization-code-information/get-organization-code

`GET /organizations/code`

Returns the tenant code of the caller's project. Users type the code on sign-in screens to choose their organization.

**Auth:** bearer token.
**Scope:** the caller's project (from the token).

## Behaviour

- The response holds `code` and `projectId`.
- If the project has no tenant code, the request fails with 400 (`Tenant code not found`).
- If more than one code row exists for a project, the most recently updated one is returned.

## Example

```bash
curl -X GET 'https://api.sandbox.ovok.com/organizations/code' \
  -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE3NjcyNjg4MDAsImV4cCI6MTc2NzI3MjQwMH0.Ql3B_ztDvctlyZ2z0vp4sl3ExXRQGkzmxdmTAqxNzZk'
```
