# API reference: account

The signed-in user and their org.

[API conventions](../api.md) explains auth, IDs, lists, errors and idempotency. The examples read the API key from `ARVM_API_KEY`.

## Operations

| Operation | Request |
|---|---|
| [Who is signed in](#who-is-signed-in) | `GET /v1/me` |
| [Get the org](#get-the-org) | `GET /v1/org` |
| [Rename the org](#rename-the-org) | `PATCH /v1/org` |
| [Submit product feedback](#submit-product-feedback) | `POST /v1/feedback` |

## Who is signed in

`GET /v1/me`

The user, their org, its plan and its balance in one call. With an API key, `user` is the key's creator.

- Operation ID: `getMe`
- Auth: an API key, or the web app's session cookie
- API key scope: any. A read-only key may call this.

**Responses**

| Status | Description | Body |
|---|---|---|
| 200 | The caller. | `application/json`: [Me](schemas.md#me) |

Errors: `401`, `429`. [Error responses](index.md#error-responses) says what each status means.

**Example**

```console
$ curl -s "https://api.arvm.dev/v1/me" \
    -H "Authorization: Bearer $ARVM_API_KEY"
```

Response body, `application/json`:

```json
{
  "user": {
    "id": "usr_01jcz3k8x0e5v9w2r4t6y8a0bq",
    "email": "ada@example.com",
    "name": "Ada",
    "created_at": "2026-11-10T20:15:00Z"
  },
  "org": {
    "id": "org_01jcz3k8x0e5v9w2r4t6y8a0bq",
    "name": "Ada",
    "created_at": "2026-11-10T20:15:00Z"
  },
  "plan": {
    "id": "standard",
    "name": "Pro"
  },
  "subscription_status": "active",
  "balance_micros": 19520000
}
```

## Get the org

`GET /v1/org`

- Operation ID: `getOrg`
- Auth: an API key, or the web app's session cookie
- API key scope: any. A read-only key may call this.

**Responses**

| Status | Description | Body |
|---|---|---|
| 200 | The org the key or session belongs to. | `application/json`: [Org](schemas.md#org) |

Errors: `401`, `429`. [Error responses](index.md#error-responses) says what each status means.

**Example**

```console
$ curl -s "https://api.arvm.dev/v1/org" \
    -H "Authorization: Bearer $ARVM_API_KEY"
```

Response body, `application/json`:

```json
{
  "id": "org_01jcz3k8x0e5v9w2r4t6y8a0bq",
  "name": "Analytical Engines",
  "created_at": "2026-11-10T20:15:00Z"
}
```

## Rename the org

`PATCH /v1/org`

- Operation ID: `updateOrg`
- Auth: an API key, or the web app's session cookie
- API key scope: a full key. A read-only key is answered 403 `read_only_key`.

**Request body**

`application/json`: [OrgUpdate](schemas.md#orgupdate)

**Responses**

| Status | Description | Body |
|---|---|---|
| 200 | The org after the change. | `application/json`: [Org](schemas.md#org) |

Errors: `400`, `401`, `403`, `429`. [Error responses](index.md#error-responses) says what each status means.

**Example**

```console
$ curl -s -X PATCH "https://api.arvm.dev/v1/org" \
    -H "Authorization: Bearer $ARVM_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{"name": "Analytical Engines"}'
```

Response body, `application/json`:

```json
{
  "id": "org_01jcz3k8x0e5v9w2r4t6y8a0bq",
  "name": "Analytical Engines",
  "created_at": "2026-11-10T20:15:00Z"
}
```

## Submit product feedback

`POST /v1/feedback`

Records product or CLI feedback for the signed-in org and user. Requires a full-scope API key
or browser session and is rate-limited per org (`429` with `Retry-After`). The whole request
body must be at most 4,096 bytes (`413` `payload_too_large` otherwise).

- Operation ID: `submitFeedback`
- Auth: an API key, or the web app's session cookie
- API key scope: a full key. A read-only key is answered 403 `read_only_key`.

**Request body**

`application/json`: [FeedbackCreate](schemas.md#feedbackcreate)

**Responses**

| Status | Description | Body |
|---|---|---|
| 201 | The feedback was recorded. | `application/json`: [FeedbackEntry](schemas.md#feedbackentry) |

Errors: `400`, `401`, `403`, `413`, `429`. [Error responses](index.md#error-responses) says what each status means.

**Example**

```console
$ curl -s -X POST "https://api.arvm.dev/v1/feedback" \
    -H "Authorization: Bearer $ARVM_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{"message": "Auto-wake worked seamlessly from the CLI.", "cli_version": "0.4.0", "os": "darwin/arm64", "command": "arvm exec"}'
```

Response body, `application/json`:

```json
{
  "id": "fb_01jcz3k8x0e5v9w2r4t6y8a0bq",
  "created_at": "2026-11-10T20:45:00Z"
}
```
