# Get my standing

```http
GET /api/public/v1/competitions/acc/leaderboard/me
```

**Scope**: `competition.read`. An API key is required. Looks up the key owner's current ACC team directly, including teams beyond the first leaderboard page.

## Query parameters

| Parameter    | Type and rules                                                                                      |
| :----------- | :-------------------------------------------------------------------------------------------------- |
| `problem`    | Required exactly once: `ac` or `stable_ac`.                                                         |
| `snapshotId` | Optional nonempty opaque ID from a leaderboard response; omit to read the latest published version. |

## Response fields

All fields are required.

| Field         | Type and meaning                                                                                                                                                                               |
| :------------ | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `problem`     | `"ac"` or `"stable_ac"`.                                                                                                                                                                       |
| `published`   | `boolean` — Whether standings are public.                                                                                                                                                      |
| `generatedAt` | UTC ISO 8601 `string` or `null` — Null before a scoring run or when unpublished.                                                                                                               |
| `snapshotId`  | Nonempty opaque `string` when published, including an empty score state; `null` when unpublished.                                                                                              |
| `entry`       | [LeaderboardEntry](./get-leaderboard.md#leaderboardentry) or `null`. Null when unpublished, the account has no current team, or that team has no ranking in the selected problem and snapshot. |

A null entry is not a zero score. An existing entry may have score `"0.0000"` when the team has solved challenges but no longer holds a minimum.

## Example request

```bash
export SAIR_API_BASE="https://api.sair.foundation/api/public/v1"

curl --get "$SAIR_API_BASE/competitions/acc/leaderboard/me" \
  -H "Authorization: Bearer $SAIR_API_KEY" \
  --data-urlencode "problem=ac" \
  --data-urlencode "snapshotId=$ACC_SNAPSHOT_ID"
```

Set `ACC_SNAPSHOT_ID` to the ID returned by [Get leaderboard](./get-leaderboard.md) to keep both results on the same score version.

## Errors

| HTTP  | Code               | Meaning                                                                                                           |
| :---: | :----------------- | :---------------------------------------------------------------------------------------------------------------- |
| `400` | `E_MALFORMED`      | Missing, repeated, or invalid problem, or an empty or malformed snapshot ID.                                      |
| `409` | `SNAPSHOT_EXPIRED` | Snapshot expired or unavailable. Discard it and reload the leaderboard and related views from the latest version. |

Snapshot IDs expire after 15 minutes. See [shared errors](../acc.md#shared-errors) for authentication, scope, availability, and configuration errors.
