# Authenticate and read your account

Create a server-side API key. Reading the account verifies authentication without sending a message.

Required. Send the account API key in the X-API-Key header. Never expose the key in a public browser or git repository.

## Request preview

```bash
curl --request GET 'https://raselsms.com/api/v2/account' \
  -H "X-API-Key: $RASEL_API_KEY"
```

## HTTP 200

```json
{
  "success": true,
  "data": {
    "profile": {
      "id": "6800user123def4567890ffff",
      "name": "Acme Co",
      "email": "ops@acme.example",
      "phone": "+963912345678",
      "avatar": null,
      "phoneVerified": true,
      "businessName": "Acme",
      "appName": "Acme App",
      "businessNameVerified": true,
      "appNameVerified": true,
      "ownerId": null,
      "memberPermissions": null,
      "createdAt": "2026-01-10T08:00:00.000Z"
    },
    "wallet": {
      "balance": 4.88,
      "availableBalance": 4.88,
      "currency": "USD"
    },
    "subscription": {
      "access": {
        "canSend": true,
        "reason": "active",
        "poolExhausted": false,
        "effectiveLimit": 1000,
        "remainingSegments": 800,
        "usageCount": 200
      },
      "active": {
        "planName": "Growth",
        "status": "active",
        "startAt": "2026-07-01T00:00:00.000Z",
        "endAt": "2026-08-01T00:00:00.000Z",
        "isTrial": false,
        "billingCycleMonths": 1
      },
      "pool": {
        "hasActivePlan": true,
        "poolSuppressed": false,
        "effectiveLimit": 1000,
        "usedSegments": 200,
        "remainingSegments": 800,
        "poolExhausted": false,
        "planName": "Growth"
      }
    },
    "freeMessageGrants": {
      "hasMore": false,
      "summary": {
        "totals": {
          "granted": 100,
          "consumed": 10,
          "reserved": 0,
          "withdrawn": 0,
          "remaining": 90,
          "activeRemaining": 90
        },
        "activeGrantCount": 1,
        "grantCount": 1,
        "byScope": [
          {
            "channel": "sms_local",
            "providerKey": null,
            "messageType": "all",
            "remaining": 90,
            "grantCount": 1
          }
        ]
      },
      "grants": [
        {
          "id": "6800abc123def4567890fedc",
          "channel": "sms_local",
          "remainingQuantity": 90,
          "status": "active",
          "reason": "admin_gift"
        }
      ]
    }
  }
}
```

Test locally with a mock response first. Confirm the recipient and cost before sending a live request.

- [GET /api/v2/account](https://raselsms.com/api-docs/markdown/account/snapshot.md)

## HTTP 401

Requires api_keys:read.

```json
{
  "success": false,
  "error": "مفتاح API مطلوب. يرجى إضافة X-API-Key في ترويسة الطلب."
}
```

[API reference](https://raselsms.com/api-docs/markdown/account/snapshot.md)

[OpenAPI](https://raselsms.com/api-docs/openapi.json)
