# Who am I

```http
GET https://trydimmi.com/api/v1/me
```

## Authorization

Send an API token as `Authorization: Bearer <token>`.

## Headers

- `Dimmi-Workspace` (string): Dimmi-Workspace: text.

## Response 200 (OK)

- `data` (object, required)
  - `auth` (object, required)
    - `abilities` (string[] | null, required): The abilities the credential itself was given.
    - `auth_methods` (string[] | null): The ways the person signed in for this session, such as password, magic_link, google, sso, totp or passkey. Left out for tokens.
    - `authenticated_at` (string): When the person signed in for this session, in UTC. Left out for tokens.
    - `effective_abilities` (string[] | null, required): What the credential can actually do right now. Check this list, not abilities, before trying something.
    - `session_id` (string): Id of the session, such as ses_... Left out for tokens.
    - `token` (object)
      - `expires_at` (string | null, required): When the token stops working. Null when it never expires.
      - `id` (string, required): The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.
      - `name` (string, required): The name the token was given when it was made.
      - `object` (string, required): The kind of record this is, the same for every record of its kind, such as article.
      - `prefix` (string, required): The start of the token, by which it is recognized; never the secret itself.
    - `two_factor_used` (boolean): True when the sign-in used a second factor. Left out for tokens.
    - `type` (string, required): The kind of credential making the request: session, personal_access_token or oauth_access_token.
  - `instance` (object, required)
    - `api_version` (string, required): The version of the API this server answers with.
    - `audit_retention_days` (integer, required): How many days audit log entries are kept; 0 means for ever. Do not look further back than this.
    - `edition` (string, required): How this server is run: self_host for an install run by its operator, or cloud.
    - `mail_configured` (boolean, required): True when the server can send email, such as invitations.
    - `region` (string, required): The region this server runs in; self for a self-hosted install with no region set.
    - `server_time` (string, required): The server's current time.
    - `version` (string, required): The version of dimmi this server runs.
  - `locale` (string, required): The language the caller reads in, as a language code such as en: their own choice, else the workspace's, else the request's.
  - `member` (object, required)
    - `access_team_ids` (string[] | null, required): Ids of the teams the conversation access names, each starting with team_. Used when conversation_access is teams or all_except_teams.
    - `assign_on_reply` (string, required): Whether replying to a conversation nobody holds assigns it to this member: inherit (follow the inbox), always or never.
    - `availability` (string, required): Whether the member is taking new conversations: online or away.
    - `away_reassign` (boolean, required): True when a customer's answer to this member's conversation goes back to the pool while the member is away.
    - `away_since` (string | null, required): Since when the member has been away. Null when they are not away.
    - `capacity_by_channel` (object, required): The most open conversations the member holds per channel type, such as {"email": 20}. Empty for no per-channel limit.
    - `conversation_access` (string, required): Which conversations the member sees: all, assigned (only their own), teams (their own plus the listed teams') or all_except_teams.
    - `conversation_access_unassigned` (boolean, required): True when a member with narrowed access also sees conversations nobody holds.
    - `conversation_capacity` (integer | null, required): The most open conversations the member holds at once, from 1 to 500. Null for no limit.
    - `id` (string, required): The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.
    - `object` (string, required): The kind of record this is, the same for every record of its kind, such as article.
    - `permissions` (string[] | null, required): The permissions the member holds in this workspace, each written area:action, such as settings:read or integrations:manage.
    - `role` (string, required): The member's role in the workspace: owner, admin or member.
    - `status` (string, required): Whether the membership is in use: active or deactivated.
  - `object` (string, required): The kind of record this is, the same for every record of its kind, such as article.
  - `user` (object, required)
    - `avatar_url` (string | null, required): Web address of the person's profile picture. Null when they have none.
    - `created_at` (string, required): When it was created, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.
    - `email` (string, required): The email address the person signs in with.
    - `email_verified` (boolean, required): True when the person has proven they own their email address.
    - `has_password` (boolean, required): True when the account has a password set; false when the person only signs in another way.
    - `id` (string, required): The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.
    - `locale` (string | null, required): The language the person picked, such as en or fr. Null while they follow their workspace's language.
    - `name` (string, required): The person's full name.
    - `object` (string, required): The kind of record this is, the same for every record of its kind, such as article.
    - `preferences` (object, required): The person's own settings with defaults filled in, keyed by name, such as {"send_with_enter": false}.
    - `timezone` (string | null, required): The time zone the person picked, as an IANA name such as Europe/Paris. Null while they follow their workspace's time zone.
    - `two_factor_enabled` (boolean, required): True when the account has a second sign-in factor turned on.
  - `workspace` (object, required)
    - `customer_facing_name` (string | null, required): The name customers see for the workspace. Null when they see the workspace's own name.
    - `deleted_at` (string | null, required): When the workspace was moved to the trash. Null while it is not deleted.
    - `id` (string, required): The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.
    - `link_safety` (object, required)
      - `allow_domains` (string[] | null, required): Domains whose links skip the warning; each covers the domain and every name under it. Empty when none.
      - `block_domains` (string[] | null, required): Domains whose links cannot be clicked; each covers the domain and every name under it. Empty when none.
      - `enabled` (boolean, required): True when links in messages are checked and warned about before opening.
      - `strip_inbound_email_links` (boolean, required): True when links in received email show as plain text until a teammate reveals them.
    - `locale` (string, required): The workspace's language, such as en.
    - `logo_url` (string | null, required): Web address of the workspace's logo on this server. Null when it has none.
    - `name` (string, required): The workspace's name, 1 to 80 characters.
    - `object` (string, required): The kind of record this is, the same for every record of its kind, such as article.
    - `onboarding` (object, required)
      - `completed_at` (string | null, required): When the workspace finished setup. Null while setup is still under way.
      - `step` (string, required): The setup step the workspace is on: workspace, logo, channels, tags, team, knowledge, test_conversations or done.
    - `purge_after` (string | null, required): When a deleted workspace is removed for good unless restored. Null while it is not deleted.
    - `require_two_factor` (boolean, required): True when every member must have a second sign-in factor to work in the workspace.
    - `retention` (object, required)
      - `changed_at` (string): When the retention periods were last changed; left out if they never were.
      - `closed_conversation_days` (integer | null, required): Days a closed conversation is kept; null when closed conversations are kept for ever.
      - `export_days` (integer, required): Days a data export is kept; 7 unless the workspace chose otherwise.
      - `raw_email_days` (integer, required): Days raw email is kept after it is read; 30 unless the workspace chose otherwise.
      - `spam_days` (integer, required): Days spam is kept; 30 unless the workspace chose otherwise.
      - `trash_days` (integer, required): Days the trash is kept; 30 unless the workspace chose otherwise.
    - `seen_receipt_shows_name` (boolean, required): True when the customer's messenger names the teammate who read their message.
    - `seen_receipts` (boolean, required): True when the customer's messenger is told that the team read their message.
    - `show_viewers_on_list` (boolean, required): True when inbox lists show who is viewing each conversation.
    - `slug` (string, required): The workspace's short name used in its web addresses.
    - `team_mentions_enabled` (boolean, required): True when a note may mention a whole team.
    - `test_mode` (boolean, required): True when the workspace is a test-mode workspace. It is fixed and cannot be changed.
    - `timezone` (string, required): The workspace's time zone, as an IANA name such as UTC or Europe/Paris.
    - `undo_send_seconds` (integer, required): How many seconds a reply waits before it leaves, during which its writer can undo it. 5 unless the workspace changed it.
  - `workspaces` (object[] | null, required): The workspaces the caller can switch to. Null for personal access tokens, which cannot switch.
    - `id` (string, required): The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.
    - `logo_url` (string | null, required): Address of the workspace's logo on this server. Null when it has none.
    - `name` (string, required): The workspace's name.
    - `object` (string, required): The kind of record this is, the same for every record of its kind, such as article.
    - `previous_slugs` (object[] | null, required): Slugs the workspace gave up and still holds, each until a set time, so links naming an old slug still find it.
      - `slug` (string, required): A slug the workspace used before and gave up; it is still held for this workspace.
      - `until` (string, required): Until when the old slug is held for this workspace.
    - `role` (string, required): The caller's role in this workspace: owner, admin or member.
    - `slug` (string, required): The workspace's short name used in its web addresses.

## Response default (Error)

- `code` (string, required): Stable code for programs to tell errors apart, such as validation_failed or internal_error.
- `errors` (object): Each rejected field mapped to its messages. Only present when the input was invalid.
- `message` (string, required): What went wrong, in words safe to show a person.

## Example request

```bash
curl --request GET \
  --url 'https://trydimmi.com/api/v1/me' \
  --header 'Authorization: Bearer <token>'
```

## Example response

```json
{
  "data": {
    "auth": {
      "abilities": [
        "<string>"
      ],
      "auth_methods": [
        "<string>"
      ],
      "authenticated_at": "2026-11-01T09:30:00Z",
      "effective_abilities": [
        "<string>"
      ],
      "session_id": "<string>",
      "token": {
        "expires_at": "2026-11-01T09:30:00Z",
        "id": "<string>",
        "name": "<string>",
        "object": "<string>",
        "prefix": "<string>"
      },
      "two_factor_used": true,
      "type": "<string>"
    },
    "instance": {
      "api_version": "<string>",
      "audit_retention_days": 123,
      "edition": "<string>",
      "mail_configured": true,
      "region": "<string>",
      "server_time": "2026-11-01T09:30:00Z",
      "version": "<string>"
    },
    "locale": "<string>",
    "member": {
      "access_team_ids": [
        "<string>"
      ],
      "assign_on_reply": "<string>",
      "availability": "<string>",
      "away_reassign": true,
      "away_since": "2026-11-01T09:30:00Z",
      "capacity_by_channel": {
        "<key>": 123
      },
      "conversation_access": "<string>",
      "conversation_access_unassigned": true,
      "conversation_capacity": 123,
      "id": "<string>",
      "object": "<string>",
      "permissions": [
        "<string>"
      ],
      "role": "<string>",
      "status": "<string>"
    },
    "object": "<string>",
    "user": {
      "avatar_url": "<string>",
      "created_at": "2026-11-01T09:30:00Z",
      "email": "<string>",
      "email_verified": true,
      "has_password": true,
      "id": "<string>",
      "locale": "<string>",
      "name": "<string>",
      "object": "<string>",
      "preferences": {
        "<key>": null
      },
      "timezone": "<string>",
      "two_factor_enabled": true
    },
    "workspace": {
      "customer_facing_name": "<string>",
      "deleted_at": "2026-11-01T09:30:00Z",
      "id": "<string>",
      "link_safety": {
        "allow_domains": [
          "<string>"
        ],
        "block_domains": [
          "<string>"
        ],
        "enabled": true,
        "strip_inbound_email_links": true
      },
      "locale": "<string>",
      "logo_url": "<string>",
      "name": "<string>",
      "object": "<string>",
      "onboarding": {
        "completed_at": "2026-11-01T09:30:00Z",
        "step": "<string>"
      },
      "purge_after": "2026-11-01T09:30:00Z",
      "require_two_factor": true,
      "retention": {
        "changed_at": "2026-11-01T09:30:00Z",
        "closed_conversation_days": 123,
        "export_days": 123,
        "raw_email_days": 123,
        "spam_days": 123,
        "trash_days": 123
      },
      "seen_receipt_shows_name": true,
      "seen_receipts": true,
      "show_viewers_on_list": true,
      "slug": "<string>",
      "team_mentions_enabled": true,
      "test_mode": true,
      "timezone": "<string>",
      "undo_send_seconds": 123
    },
    "workspaces": [
      {
        "id": "<string>",
        "logo_url": "<string>",
        "name": "<string>",
        "object": "<string>",
        "previous_slugs": [
          {}
        ],
        "role": "<string>",
        "slug": "<string>"
      }
    ]
  }
}
```

---

Index of all dimmi docs: https://trydimmi.com/llms.txt (full text: https://trydimmi.com/llms-full.txt)
