---
title: "ResourceShark API: Claims"
description: "Consume supply, settle an estimated claim, list claims, or get a claim, with the ResourceShark API."
url: "https://agentpost.tools/docs/resourceshark/reference/claims"
kind: reference
---

# Claims

Take supply, settle an estimated quantity, or read claim records.

Paths are relative to `https://api.agentpost.tools/v1/resources`. [Who may call](/docs/resourceshark/reference.md#who-may-call) explains each credential.

## Consume supply

`POST /consume`

Takes each line from what is available, for good, all or nothing. Several lines may name a resource counted in buckets, with disjoint spans in each scope, or a resource with identity: instance, each naming a different unit. A line naming a unit that isn’t free refuses the request with assignment\_infeasible. Repeating the same request with its sourceKey answers with the first result.

-   **Who may call:** Your server, with your project’s secret key.
-   **Credential:** the examples send your project’s `dev` secret key, `sk_test_…`, as `Authorization: Bearer <token>`.
-   **SDK:** `client.claims.consume(body, { idempotencyKey })`
-   **Idempotency-Key:** required. [Retrying a write](/docs/platform/api-basics.md#retrying-a-write) has the rule.

### Body

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `lines` | `object[]` | Yes | 1–50 items. |
| `lines[].resourceId` | `string` | Yes | 1–256 characters. |
| `lines[].scope` | `object` | No |  |
| `lines[].scope.placeId` | `string` | No |  |
| `lines[].scope.condition` | `string` | No | 1–64 characters. |
| `lines[].scope.holderRef` | `string` | No | 1–256 characters. |
| `lines[].scope.instanceId` | `string` | No |  |
| `lines[].quantity` | `number` | Yes |  |
| `lines[].from` | `object` | No |  |
| `lines[].from.batchId` | `string` | No | 1–256 characters. |
| `lines[].from.supplyId` | `string` | No | 1–256 characters. |
| `lines[].span` | `object` | No |  |
| `lines[].span.start` | `string` | Yes | An ISO 8601 date and time. |
| `lines[].span.end` | `string` | Yes | An ISO 8601 date and time. |
| `estimate` | `boolean` | No |  |
| `evidence` | `object` | Yes |  |
| `evidence.kind` | `string` | Yes | 1–256 characters. |
| `evidence.ref` | `string` | Yes | 1–256 characters. |
| `sourceKey` | `string` | Yes | 1–200 characters. |

### Response

`201 Created`, with [`ConsumeResponse`](/docs/resourceshark/reference/claims.md#the-consumeresponse-object).

### Errors

-   [`invalid_request`](/docs/resourceshark/errors.md#invalid_request) (400)
-   [`payload_too_large`](/docs/resourceshark/errors.md#payload_too_large) (413)
-   [`invalid_quantity`](/docs/resourceshark/errors.md#invalid_quantity) (422)
-   [`not_found`](/docs/resourceshark/errors.md#not_found) (404)
-   [`duplicate_source`](/docs/resourceshark/errors.md#duplicate_source) (409)
-   [`insufficient_supply`](/docs/resourceshark/errors.md#insufficient_supply) (409)
-   [`exhausted_until_supply`](/docs/resourceshark/errors.md#exhausted_until_supply) (409)
-   [`assignment_infeasible`](/docs/resourceshark/errors.md#assignment_infeasible) (409)

Any operation can also answer with the codes [Conventions](/docs/resourceshark/reference.md#conventions) lists.

```bash tab="curl"
curl -X POST https://api.agentpost.tools/v1/resources/consume \
  -H "Authorization: Bearer sk_test_…" \
  -H "Idempotency-Key: estimate-tasting-1042" \
  -H "Content-Type: application/json" \
  -d '{
    "lines": [
      {
        "resourceId": "res_01M83PPH000000000000000003",
        "scope": {
          "holderRef": "principal:external:u_maya"
        },
        "quantity": 3
      }
    ],
    "estimate": true,
    "evidence": {
      "kind": "tasting",
      "ref": "tasting_1042"
    },
    "sourceKey": "tasting:1042:estimate"
  }'
```

```ts tab="SDK"
import { createClient } from '@agentpost-tools/resourceshark-sdk';

const client = createClient({ token: 'sk_test_…' });
const { claims, movements } = await client.claims.consume(
  {
    lines: [
      {
        resourceId: 'res_01M83PPH000000000000000003',
        scope: { holderRef: 'principal:external:u_maya' },
        quantity: 3,
      },
    ],
    estimate: true,
    evidence: { kind: 'tasting', ref: 'tasting_1042' },
    sourceKey: 'tasting:1042:estimate',
  },
  { idempotencyKey: 'estimate-tasting-1042' },
);
```

```json title="Response"
{
  "claims": [
    {
      "id": "clm_01M83PPH000000000000000002",
      "resourceId": "res_01M83PPH000000000000000003",
      "scope": {
        "holderRef": "principal:external:u_maya"
      },
      "span": {
        "start": "2026-11-23T09:30:00.000Z",
        "end": null
      },
      "quantity": 3,
      "kind": "consumption",
      "status": "committed",
      "estimate": 3,
      "pegs": [
        {
          "supplyId": "sup_01M83PPH000000000000000003",
          "quantity": 3
        }
      ],
      "holderRef": "principal:external:u_maya",
      "evidence": {
        "kind": "tasting",
        "ref": "tasting_1042"
      },
      "sourceKey": "tasting:1042:estimate",
      "actor": {
        "id": "key:juniper-backend"
      },
      "createdAt": "2026-11-23T09:30:00.000Z",
      "updatedAt": "2026-11-23T09:30:00.000Z"
    }
  ],
  "movements": [
    {
      "id": "mov_01M83PPH000000000000000005",
      "seq": 5,
      "resourceId": "res_01M83PPH000000000000000003",
      "scope": {
        "holderRef": "principal:external:u_maya"
      },
      "reason": "use",
      "claimId": "clm_01M83PPH000000000000000002",
      "supplyId": "sup_01M83PPH000000000000000003",
      "pegs": [
        {
          "supplyId": "sup_01M83PPH000000000000000003",
          "quantity": 3
        }
      ],
      "evidence": {
        "kind": "tasting",
        "ref": "tasting_1042"
      },
      "at": "2026-11-23T09:30:00.000Z",
      "quantity": -3,
      "before": 12,
      "after": 9,
      "actor": {
        "id": "key:juniper-backend"
      }
    }
  ]
}
```

## Settle an estimated claim

`POST /settle`

Settles estimated consumptions at their real quantities, each once, all or nothing: gives back the difference or takes more, in a settle movement on each claim. An identical repeat under the same sourceKey answers with the first result and duplicate: true. A different request that reuses that sourceKey on one of its resources answers duplicate\_source. A new sourceKey for a claim that is already settled answers invalid\_request.

-   **Who may call:** Your server, with your project’s secret key.
-   **Credential:** the examples send your project’s `dev` secret key, `sk_test_…`, as `Authorization: Bearer <token>`.
-   **SDK:** `client.claims.settle(body, { idempotencyKey })`
-   **Idempotency-Key:** required. [Retrying a write](/docs/platform/api-basics.md#retrying-a-write) has the rule.

### Body

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `lines` | `object[]` | Yes | 1–50 items. |
| `lines[].claimId` | `string` | Yes | 1–256 characters. |
| `lines[].quantity` | `number` | Yes |  |
| `evidence` | `object` | No |  |
| `evidence.kind` | `string` | Yes | 1–256 characters. |
| `evidence.ref` | `string` | Yes | 1–256 characters. |
| `sourceKey` | `string` | Yes | 1–200 characters. |

### Response

`200 OK`, with [`SettleResponse`](/docs/resourceshark/reference/claims.md#the-settleresponse-object).

### Errors

-   [`invalid_request`](/docs/resourceshark/errors.md#invalid_request) (400)
-   [`payload_too_large`](/docs/resourceshark/errors.md#payload_too_large) (413)
-   [`invalid_quantity`](/docs/resourceshark/errors.md#invalid_quantity) (422)
-   [`not_found`](/docs/resourceshark/errors.md#not_found) (404)
-   [`duplicate_source`](/docs/resourceshark/errors.md#duplicate_source) (409)
-   [`insufficient_supply`](/docs/resourceshark/errors.md#insufficient_supply) (409)
-   [`exhausted_until_supply`](/docs/resourceshark/errors.md#exhausted_until_supply) (409)
-   [`assignment_infeasible`](/docs/resourceshark/errors.md#assignment_infeasible) (409)

Any operation can also answer with the codes [Conventions](/docs/resourceshark/reference.md#conventions) lists.

```bash tab="curl"
curl -X POST https://api.agentpost.tools/v1/resources/settle \
  -H "Authorization: Bearer sk_test_…" \
  -H "Idempotency-Key: settle-tasting-1042" \
  -H "Content-Type: application/json" \
  -d '{
    "lines": [
      {
        "claimId": "clm_01M83PPH000000000000000002",
        "quantity": 2
      }
    ],
    "evidence": {
      "kind": "attendance",
      "ref": "tasting_1042"
    },
    "sourceKey": "tasting:1042:attendance"
  }'
```

```ts tab="SDK"
import { createClient } from '@agentpost-tools/resourceshark-sdk';

const client = createClient({ token: 'sk_test_…' });
const { claims, movements } = await client.claims.settle(
  {
    lines: [{ claimId: 'clm_01M83PPH000000000000000002', quantity: 2 }],
    evidence: { kind: 'attendance', ref: 'tasting_1042' },
    sourceKey: 'tasting:1042:attendance',
  },
  { idempotencyKey: 'settle-tasting-1042' },
);
```

```json title="Response"
{
  "claims": [
    {
      "id": "clm_01M83PPH000000000000000002",
      "resourceId": "res_01M83PPH000000000000000003",
      "scope": {
        "holderRef": "principal:external:u_maya"
      },
      "span": {
        "start": "2026-11-23T09:30:00.000Z",
        "end": null
      },
      "quantity": 2,
      "kind": "consumption",
      "status": "committed",
      "estimate": 3,
      "pegs": [
        {
          "supplyId": "sup_01M83PPH000000000000000003",
          "quantity": 2
        }
      ],
      "holderRef": "principal:external:u_maya",
      "evidence": {
        "kind": "tasting",
        "ref": "tasting_1042"
      },
      "sourceKey": "tasting:1042:estimate",
      "actor": {
        "id": "key:juniper-backend"
      },
      "createdAt": "2026-11-23T09:30:00.000Z",
      "updatedAt": "2026-11-23T09:40:00.000Z",
      "settled": 2
    }
  ],
  "movements": [
    {
      "id": "mov_01M83PPH000000000000000006",
      "seq": 6,
      "resourceId": "res_01M83PPH000000000000000003",
      "scope": {
        "holderRef": "principal:external:u_maya"
      },
      "reason": "settle",
      "claimId": "clm_01M83PPH000000000000000002",
      "supplyId": "sup_01M83PPH000000000000000003",
      "pegs": [
        {
          "supplyId": "sup_01M83PPH000000000000000003",
          "quantity": 1
        }
      ],
      "evidence": {
        "kind": "attendance",
        "ref": "tasting_1042"
      },
      "at": "2026-11-23T09:40:00.000Z",
      "quantity": 1,
      "before": 9,
      "after": 10,
      "actor": {
        "id": "key:juniper-backend"
      }
    }
  ]
}
```

## List claims

`GET /claims`

Lists claims, optionally filtered by resource, holder, status, and kind, and by a range their span overlaps, so a resource’s claims from and to are its hours booked then. A caller constrained to one holder lists only its own.

-   **Who may call:** Your server, with your project’s secret key or a signed-in principal, with a user token for their own `principal:<principal>` holder.
-   **Credential:** the examples send your project’s `dev` secret key, `sk_test_…`, as `Authorization: Bearer <token>`.
-   **SDK:** `client.claims.list(query)`
-   **Pages:** `limit`, 1 to 500, default 100, with `next` and `after`. [Lists](/docs/platform/api-basics.md#lists) has the rule.

### Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `resourceId` | `string` | No | 1–256 characters. |
| `holderRef` | `string` | No | 1–256 characters. |
| `status` | `string` | No | One of `"held"`, `"committed"`, `"released"`, `"expired"`, or `"cancelled"`. |
| `kind` | `string` | No | One of `"hold"`, `"consumption"`, or `"booking"`. |
| `from` | `string` | No | An ISO 8601 date and time. |
| `to` | `string` | No | An ISO 8601 date and time. |
| `after` | `string` | No | 1–200 characters. |
| `limit` | `integer` | No | 1–500; default `100`. |

### Response

`200 OK`, with [`ClaimsPage`](/docs/resourceshark/reference/claims.md#the-claimspage-object).

### Errors

-   [`invalid_request`](/docs/resourceshark/errors.md#invalid_request) (400)

Any operation can also answer with the codes [Conventions](/docs/resourceshark/reference.md#conventions) lists.

```bash tab="curl"
curl 'https://api.agentpost.tools/v1/resources/claims?resourceId=res_01M83PPH000000000000000003&holderRef=principal%3Aexternal%3Au_maya&kind=consumption&limit=20' \
  -H "Authorization: Bearer sk_test_…"
```

```ts tab="SDK"
import { createClient } from '@agentpost-tools/resourceshark-sdk';

const client = createClient({ token: 'sk_test_…' });
const { claims } = await client.claims.list({
  resourceId: 'res_01M83PPH000000000000000003',
  holderRef: 'principal:external:u_maya',
  kind: 'consumption',
  limit: 20,
});
```

```json title="Response"
{
  "claims": [
    {
      "id": "clm_01M83PPH000000000000000002",
      "resourceId": "res_01M83PPH000000000000000003",
      "scope": {
        "holderRef": "principal:external:u_maya"
      },
      "span": {
        "start": "2026-11-23T09:30:00.000Z",
        "end": null
      },
      "quantity": 2,
      "kind": "consumption",
      "status": "committed",
      "estimate": 3,
      "pegs": [
        {
          "supplyId": "sup_01M83PPH000000000000000003",
          "quantity": 2
        }
      ],
      "holderRef": "principal:external:u_maya",
      "evidence": {
        "kind": "tasting",
        "ref": "tasting_1042"
      },
      "sourceKey": "tasting:1042:estimate",
      "actor": {
        "id": "key:juniper-backend"
      },
      "createdAt": "2026-11-23T09:30:00.000Z",
      "updatedAt": "2026-11-23T09:40:00.000Z",
      "settled": 2
    }
  ]
}
```

## Get a claim

`GET /claims/:id`

Reads a claim. A caller constrained to one holder reads only its own.

-   **Who may call:** Your server, with your project’s secret key or a signed-in principal, with a user token for their own `principal:<principal>` holder.
-   **Credential:** the examples send your project’s `dev` secret key, `sk_test_…`, as `Authorization: Bearer <token>`.
-   **SDK:** `client.claims.get(id)`

### Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | Yes | Claim ID, `clm_…`. The `id` of a [`Claim`](/docs/resourceshark/reference/claims.md#the-claim-object). |

### Response

`200 OK`, with [`ClaimResponse`](/docs/resourceshark/reference/claims.md#the-claimresponse-object).

### Errors

-   [`not_found`](/docs/resourceshark/errors.md#not_found) (404)

Any operation can also answer with the codes [Conventions](/docs/resourceshark/reference.md#conventions) lists.

```bash tab="curl"
curl https://api.agentpost.tools/v1/resources/claims/clm_01M83PPH000000000000000002 \
  -H "Authorization: Bearer sk_test_…"
```

```ts tab="SDK"
import { createClient } from '@agentpost-tools/resourceshark-sdk';

const client = createClient({ token: 'sk_test_…' });
const { claim } = await client.claims.get('clm_01M83PPH000000000000000002');
```

```json title="Response"
{
  "claim": {
    "id": "clm_01M83PPH000000000000000002",
    "resourceId": "res_01M83PPH000000000000000003",
    "scope": {
      "holderRef": "principal:external:u_maya"
    },
    "span": {
      "start": "2026-11-23T09:30:00.000Z",
      "end": null
    },
    "quantity": 2,
    "kind": "consumption",
    "status": "committed",
    "estimate": 3,
    "pegs": [
      {
        "supplyId": "sup_01M83PPH000000000000000003",
        "quantity": 2
      }
    ],
    "holderRef": "principal:external:u_maya",
    "evidence": {
      "kind": "tasting",
      "ref": "tasting_1042"
    },
    "sourceKey": "tasting:1042:estimate",
    "actor": {
      "id": "key:juniper-backend"
    },
    "createdAt": "2026-11-23T09:30:00.000Z",
    "updatedAt": "2026-11-23T09:40:00.000Z",
    "settled": 2
  }
}
```

## The ConsumeResponse object

| Name | Type | Present | Description |
| --- | --- | --- | --- |
| `claims` | [`Claim`](/docs/resourceshark/reference/claims.md#the-claim-object) array | Always | One per line, in the order of the lines. |
| `movements` | [`Movement`](/docs/resourceshark/reference/supply.md#the-movement-object) array | Always | One per line in the same order. On a bucketed resource, this is the first bucket’s movement. |
| `duplicate` | `true` | When set | Set when the `sourceKey` already named this request: nothing was taken again. |

```json title="The ConsumeResponse object"
{
  "claims": [
    {
      "id": "clm_01M83PPH000000000000000002",
      "resourceId": "res_01M83PPH000000000000000003",
      "scope": {
        "holderRef": "principal:external:u_maya"
      },
      "span": {
        "start": "2026-11-23T09:30:00.000Z",
        "end": null
      },
      "quantity": 3,
      "kind": "consumption",
      "status": "committed",
      "estimate": 3,
      "pegs": [
        {
          "supplyId": "sup_01M83PPH000000000000000003",
          "quantity": 3
        }
      ],
      "holderRef": "principal:external:u_maya",
      "evidence": {
        "kind": "tasting",
        "ref": "tasting_1042"
      },
      "sourceKey": "tasting:1042:estimate",
      "actor": {
        "id": "key:juniper-backend"
      },
      "createdAt": "2026-11-23T09:30:00.000Z",
      "updatedAt": "2026-11-23T09:30:00.000Z"
    }
  ],
  "movements": [
    {
      "id": "mov_01M83PPH000000000000000005",
      "seq": 5,
      "resourceId": "res_01M83PPH000000000000000003",
      "scope": {
        "holderRef": "principal:external:u_maya"
      },
      "reason": "use",
      "claimId": "clm_01M83PPH000000000000000002",
      "supplyId": "sup_01M83PPH000000000000000003",
      "pegs": [
        {
          "supplyId": "sup_01M83PPH000000000000000003",
          "quantity": 3
        }
      ],
      "evidence": {
        "kind": "tasting",
        "ref": "tasting_1042"
      },
      "at": "2026-11-23T09:30:00.000Z",
      "quantity": -3,
      "before": 12,
      "after": 9,
      "actor": {
        "id": "key:juniper-backend"
      }
    }
  ]
}
```

## The SettleResponse object

What a settle wrote.

| Name | Type | Present | Description |
| --- | --- | --- | --- |
| `claims` | [`Claim`](/docs/resourceshark/reference/claims.md#the-claim-object) array | Always | One per line, settled, in the order of the lines. |
| `movements` | [`Movement`](/docs/resourceshark/reference/supply.md#the-movement-object) array | Always | The `settle` movements, in the order of the lines, one for each claim whose real quantity differs from its estimate. Each names its claim. |
| `duplicate` | `true` | When set | Set when the `sourceKey` already named this request: nothing was settled again. |

```json title="The SettleResponse object"
{
  "claims": [
    {
      "id": "clm_01M83PPH000000000000000002",
      "resourceId": "res_01M83PPH000000000000000003",
      "scope": {
        "holderRef": "principal:external:u_maya"
      },
      "span": {
        "start": "2026-11-23T09:30:00.000Z",
        "end": null
      },
      "quantity": 2,
      "kind": "consumption",
      "status": "committed",
      "estimate": 3,
      "pegs": [
        {
          "supplyId": "sup_01M83PPH000000000000000003",
          "quantity": 2
        }
      ],
      "holderRef": "principal:external:u_maya",
      "evidence": {
        "kind": "tasting",
        "ref": "tasting_1042"
      },
      "sourceKey": "tasting:1042:estimate",
      "actor": {
        "id": "key:juniper-backend"
      },
      "createdAt": "2026-11-23T09:30:00.000Z",
      "updatedAt": "2026-11-23T09:40:00.000Z",
      "settled": 2
    }
  ],
  "movements": [
    {
      "id": "mov_01M83PPH000000000000000006",
      "seq": 6,
      "resourceId": "res_01M83PPH000000000000000003",
      "scope": {
        "holderRef": "principal:external:u_maya"
      },
      "reason": "settle",
      "claimId": "clm_01M83PPH000000000000000002",
      "supplyId": "sup_01M83PPH000000000000000003",
      "pegs": [
        {
          "supplyId": "sup_01M83PPH000000000000000003",
          "quantity": 1
        }
      ],
      "evidence": {
        "kind": "attendance",
        "ref": "tasting_1042"
      },
      "at": "2026-11-23T09:40:00.000Z",
      "quantity": 1,
      "before": 9,
      "after": 10,
      "actor": {
        "id": "key:juniper-backend"
      }
    }
  ]
}
```

## The ClaimsPage object

One page of claims, with the cursor for the next page when there is one.

| Name | Type | Present | Description |
| --- | --- | --- | --- |
| `claims` | [`Claim`](/docs/resourceshark/reference/claims.md#the-claim-object) array | Always |  |
| `next` | `string` | When set |  |

```json title="The ClaimsPage object"
{
  "claims": [
    {
      "id": "clm_01M83PPH000000000000000002",
      "resourceId": "res_01M83PPH000000000000000003",
      "scope": {
        "holderRef": "principal:external:u_maya"
      },
      "span": {
        "start": "2026-11-23T09:30:00.000Z",
        "end": null
      },
      "quantity": 2,
      "kind": "consumption",
      "status": "committed",
      "estimate": 3,
      "pegs": [
        {
          "supplyId": "sup_01M83PPH000000000000000003",
          "quantity": 2
        }
      ],
      "holderRef": "principal:external:u_maya",
      "evidence": {
        "kind": "tasting",
        "ref": "tasting_1042"
      },
      "sourceKey": "tasting:1042:estimate",
      "actor": {
        "id": "key:juniper-backend"
      },
      "createdAt": "2026-11-23T09:30:00.000Z",
      "updatedAt": "2026-11-23T09:40:00.000Z",
      "settled": 2
    }
  ]
}
```

## The ClaimResponse object

The claim read by ID.

| Name | Type | Present | Description |
| --- | --- | --- | --- |
| `claim` | [`Claim`](/docs/resourceshark/reference/claims.md#the-claim-object) | Always |  |

```json title="The ClaimResponse object"
{
  "claim": {
    "id": "clm_01M83PPH000000000000000002",
    "resourceId": "res_01M83PPH000000000000000003",
    "scope": {
      "holderRef": "principal:external:u_maya"
    },
    "span": {
      "start": "2026-11-23T09:30:00.000Z",
      "end": null
    },
    "quantity": 2,
    "kind": "consumption",
    "status": "committed",
    "estimate": 3,
    "pegs": [
      {
        "supplyId": "sup_01M83PPH000000000000000003",
        "quantity": 2
      }
    ],
    "holderRef": "principal:external:u_maya",
    "evidence": {
      "kind": "tasting",
      "ref": "tasting_1042"
    },
    "sourceKey": "tasting:1042:estimate",
    "actor": {
      "id": "key:juniper-backend"
    },
    "createdAt": "2026-11-23T09:30:00.000Z",
    "updatedAt": "2026-11-23T09:40:00.000Z",
    "settled": 2
  }
}
```

## The Claim object

What one line held or took from a resource.

| Name | Type | Present | Description |
| --- | --- | --- | --- |
| `id` | `string` | Always | Claim ID, `clm_…`. |
| `resourceId` | `string` | Always | Resource ID, `res_…`. |
| `scope` | [`Scope`](/docs/resourceshark/reference/supply.md#the-scope-object) | Always | The scope it takes from. |
| `span` | [`Span`](/docs/resourceshark/reference/claims.md#the-span-object) | Always | Half-open, UTC. A consumption starts when it was taken and never ends; so does a hold’s claim, from when it was placed. A claim on a resource counted in buckets has the span its line asked for, with an end. |
| `quantity` | `number` | Always | What it takes. For a hold’s claim, what it holds, or held until its hold was resolved. |
| `kind` | `string` | Always | A claim with a span that ends, on a resource counted in buckets, is a `booking` once it is taken: a consumption there, or a hold’s line once its hold is committed. A hold’s line is `hold` until then. One of `"hold"`, `"consumption"`, or `"booking"`. |
| `status` | `string` | Always | One of `"held"`, `"committed"`, `"released"`, `"expired"`, or `"cancelled"`. |
| `holdId` | `string` | When set | The hold it is a line of, for a claim of kind `hold`. |
| `committed` | `number` | When set | What its hold’s commit took for good; the rest of `quantity` was released. |
| `pegs` | [`Peg`](/docs/resourceshark/reference/supply.md#the-peg-object) array | When set | The entries it drew from, when the resource keeps its supply apart. On a resource that lets its balance go below zero, they can cover less than the claim: the rest was owed, or a hold’s line holds it with no entry until its commit takes it. |
| `transformationId` | `string` | When set | The conversion that took this claim’s quantity. |
| `estimate` | `number` | When set | What an estimate first took, kept once it is settled; `quantity` is then the real quantity. |
| `settled` | `number` | When set | The real quantity an estimate was settled at. Set once, by the settle. |
| `holderRef` | `string` | When set | Your app’s name for the holder, such as `principal:external:u_maya`. |
| `evidence` | [`Evidence`](/docs/resourceshark/reference/supply.md#the-evidence-object) | When set | What it was taken for. A claim taken by a hold commit carries the commit’s evidence. |
| `sourceKey` | `string` | When set | For a consume or hold commit, kept on the first claim that takes from each resource. |
| `actor` | [`PrincipalRef`](/docs/resourceshark/reference/supply.md#the-principalref-object) | Always |  |
| `onBehalfOf` | [`PrincipalRef`](/docs/resourceshark/reference/supply.md#the-principalref-object) | When set |  |
| `createdAt` | `string` | Always | An ISO 8601 date and time. |
| `updatedAt` | `string` | Always | An ISO 8601 date and time. |

```json title="The Claim object"
{
  "id": "clm_01M83PPH000000000000000002",
  "resourceId": "res_01M83PPH000000000000000003",
  "scope": {
    "holderRef": "principal:external:u_maya"
  },
  "span": {
    "start": "2026-11-23T09:30:00.000Z",
    "end": null
  },
  "quantity": 2,
  "kind": "consumption",
  "status": "committed",
  "estimate": 3,
  "pegs": [
    {
      "supplyId": "sup_01M83PPH000000000000000003",
      "quantity": 2
    }
  ],
  "holderRef": "principal:external:u_maya",
  "evidence": {
    "kind": "tasting",
    "ref": "tasting_1042"
  },
  "sourceKey": "tasting:1042:estimate",
  "actor": {
    "id": "key:juniper-backend"
  },
  "createdAt": "2026-11-23T09:30:00.000Z",
  "updatedAt": "2026-11-23T09:40:00.000Z",
  "settled": 2
}
```

## The Span object

Half-open, `[start, end)`, in UTC. A null `end` is open-ended.

| Name | Type | Present | Description |
| --- | --- | --- | --- |
| `start` | `string` | Always | An ISO 8601 date and time. |
| `end` | `string` or `null` | Always |  |

```json title="The Span object"
{
  "start": "2026-11-23T09:30:00.000Z",
  "end": null
}
```
