---
# @generated by sylphx-gen 0.1.0 from contracts@e145cc7cf1bc9605f2b27439e5e17ed76a1a2fd7e7021906a013f7565e4a0cd5. Do not edit.
title: "Check an entitlement grant"
description: "`money.entitlement_grants.check` (POST /v1/{parent}/entitlement_grants:check): Answers whether a subject holds a feature now, and how much of it."
type: reference
product: payments
summary: "Answers whether a subject holds a feature now, and how much of it."
updated: 2026-09-28
nav: false
---

Answers whether a subject holds a feature now, and how much of it.

- **Path** `POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/entitlement_grants:check`
- **Scope** `billing:read`
- **Effect** `read` — nothing is written.
- **Collection** [entitlement_grants](/docs/api/entitlement_grants)

## Request

| Field | Type | What it is |
| --- | --- | --- |
| `parent` | `string` | The environment to check in. Required. |
| `subject` | `Subject` | Who. Required. |
| `feature` | `string` | The feature key. Required. |

### Subject

| Field | Type | What it is |
| --- | --- | --- |
| `end_user` | `string` | An end user's id (Sylphx Auth, or the app's own OIDC issuer). One of the `kind` group. |
| `customer_organization` | `string` | A customer organization's id. One of the `kind` group. |

## Response

| Field | Type | What it is |
| --- | --- | --- |
| `entitled` | `bool` | Whether the subject holds the feature now. |
| `limit` | `string` | For a `limit` feature, the largest allowance the subject holds. |
| `entitlement_grant` | `string` | The grant that answers, when entitled. |
| `expire_time` | `timestamp` | When the answering grant ends; unset for no end. A caller may cache the answer until then. |

## Errors

- [`UNAUTHENTICATED`](/docs/api/errors/UNAUTHENTICATED) — No valid key or token was presented.
- [`PERMISSION_DENIED`](/docs/api/errors/PERMISSION_DENIED) — The key lacks the method's permission.
- [`INVALID_FIELD`](/docs/api/errors/INVALID_FIELD) — A field failed validation.

Every error arrives in the body [Errors](/docs/platform/errors) describes.

## Examples

**cURL**

```curl
curl -X POST "https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/entitlement_grants:check" \
  -H "Authorization: Bearer $SYLPHX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"feature":"…","subject":{}}'
```

**TypeScript**

```ts
const response = await sylphx.money.entitlementGrants.check({ feature: '…', parent: 'orgs/acme/projects/shop/envs/production', subject: {} })
```

**Rust**

```rust
let mut req = sylphx::money::CheckEntitlementRequest::default();
req.feature = "…".to_string();
req.parent = "orgs/acme/projects/shop/envs/production".to_string();
req.subject = Some(Default::default());
let response = sx.money().entitlement_grants().check(req).await?;
```

**CLI**

```bash
sylphx money entitlement-grants check orgs/acme/projects/shop/envs/production
```

**MCP**

```json
{ "method_id": "money.entitlement_grants.check", "args": {"feature":"…","parent":"orgs/acme/projects/shop/envs/production","subject":{}} }
```
