# Current installation

Who you are on this store: the app, the installation and the scopes granted right now. Requires no scope.

```http
GET https://larm.sa/stores/{storeId}/v1/me
```

Call it after every token refresh to confirm the new pair belongs to the same store and installation, and before any work that depends on an optional scope.

## Response

| Field | Type | Required | Description |
|---|---|---|---|
| `data` | object | yes |  |
| `data.store_id` | string (uuid) | no |  |
| `data.app_id` | string (uuid) | no |  |
| `data.installation_id` | string (uuid) | no |  |
| `data.installation_generation` | integer | no |  |
| `data.grant_revision` | integer | no |  |
| `data.scopes` | array<string> | no |  |
| `data.api_major` | object | no |  |
| `data.store` | object | no | Public store details. |
| `data.store.name` | string \| null | no |  |
| `data.store.domain` | string \| null | no | The store domain, without https. |
| `data.store.url` | string \| null (uri) | no | The store https origin, or null when it has no domain. |
| `data.store.currency` | object | no |  |
| `data.store.locale` | object | no |  |
| `execution` | object | no | Who executed the request: the app, version, installation and store. Field names here are camelCase. |
| `execution.appId` | string (uuid) | no |  |
| `execution.versionId` | string (uuid) | no |  |
| `execution.installationId` | string (uuid) | no |  |
| `execution.storeId` | string (uuid) | no |  |
| `execution.requestId` | string (uuid) | no |  |
| `execution.generation` | integer | no |  |
| `execution.routeEpoch` | integer | no |  |
| `execution.appAuthEpoch` | integer | no |  |
| `execution.grantRevision` | integer | no |  |
| `meta` | object | yes |  |
| `meta.request_id` | string (uuid) | no | The request ID; include it in any support request. |


## Example request

```bash
curl -X GET "https://larm.sa/stores/$STORE_ID/v1/me" \
  -H "Authorization: Bearer $ACCESS_TOKEN"
```


## Example response (200)

```json
{
  "data": {
    "store_id": "5b1d7a62-0c4e-4f38-9a51-2e7b3c9d8f10",
    "app_id": "1f2e3d4c-5b6a-4978-8695-a4b3c2d1e0f9",
    "installation_id": "c7e4a1f2-6b3d-4e8a-9c05-1d2f3a4b5c6d",
    "installation_generation": 1,
    "grant_revision": 2,
    "scopes": [
      "orders:read",
      "customers:read",
      "products:read"
    ],
    "api_major": 1,
    "store": {
      "name": "Charge Store",
      "domain": "store.example",
      "url": "https://store.example",
      "currency": "SAR",
      "locale": "ar"
    }
  },
  "execution": {
    "appId": "1f2e3d4c-5b6a-4978-8695-a4b3c2d1e0f9",
    "versionId": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
    "installationId": "c7e4a1f2-6b3d-4e8a-9c05-1d2f3a4b5c6d",
    "storeId": "5b1d7a62-0c4e-4f38-9a51-2e7b3c9d8f10",
    "requestId": "3f0c2b8e-7a51-4c1e-9d0a-5b6f1e2d4c3a",
    "generation": 1,
    "routeEpoch": 4,
    "appAuthEpoch": 1,
    "grantRevision": 2
  },
  "meta": {
    "request_id": "3f0c2b8e-7a51-4c1e-9d0a-5b6f1e2d4c3a"
  }
}
```
