## Get product

`GET https://whatsapp.paaltech.org/api/v1/me`

Returns the calling product and the key used: its environment (`live` for real
businesses, `test` for the sandbox), prefix and abilities. Call it when your app starts
and fail loudly if an ability you need is missing.

Ability: `any`

### Request

```bash
curl --request GET \
  --url 'https://whatsapp.paaltech.org/api/v1/me' \
  --header "Authorization: Bearer $PAALCHAT_TOKEN" \
  --header 'Accept: application/json'
```

### Responses

- **200** - The product and token.

```json
{
  "data": {
    "product": "multi-skuul",
    "name": "Multi-SKUUL",
    "token": {
      "name": "production",
      "environment": "live",
      "prefix": "sk_live_4gVx",
      "abilities": [
        "businesses.read",
        "businesses.write",
        "connections.read",
        "connections.manage",
        "templates.read",
        "messages.read",
        "messages.send"
      ],
      "expires_at": null
    }
  }
}
```

- **401** - unauthenticated - missing, invalid, revoked or expired token

```json
{
  "error": {"code": "unauthenticated", "message": "A valid product token is required."}
}
```

- **403** - missing_ability, product_suspended or product_token_required

```json
{
  "error": {
    "code": "missing_ability",
    "message": "This token does not have the ability this request needs."
  }
}
```

- **429** - rate_limited - over 300 requests/minute for this product

```json
{
  "error": {
    "code": "rate_limited",
    "message": "Too many requests. Slow down and retry after the Retry-After header."
  }
}
```

