# prov.mandate.intents.get

prov.mandate.intents.get in Python SDK. The issuer's view of one token: revoked, with the scope and reason.

## Signature

```python
prov.mandate.intents.get(jti: str) -> Any
```

## Parameters

- `jti` (str)

## Returns

`Any`

## HTTP operation

[`GET /v1/mandate/intents/{id}`](https://provenanceauth.com/docs/api/intent-tokens.md#get-v1-mandate-intents-id): Check a token's revocation status

## Errors

- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)
- [`resource_missing`](https://provenanceauth.com/docs/platform/errors.md#resource_missing)

## Example

**Node**

```ts
const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/mandate/intents`, {
  method: "POST",
  headers: { Authorization: `Bearer ${process.env.PROVENANCE_KEY}`, "Content-Type": "application/json" },
  body: JSON.stringify({
    "action_description": "Pay invoice INV-2041",
    "agent_session_id": "sess_reference_status",
    "device_id": "dev_00000000000000000000000000000001"
  }),
})).json();
const jti = step1.attestation_id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/mandate/intents/${jti}`, {
  headers: { Authorization: `Bearer ${process.env.PROVENANCE_KEY}` },
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/mandate/intents", headers={"Authorization": f"Bearer {os.environ['PROVENANCE_KEY']}"}, json={
    "action_description": "Pay invoice INV-2041",
    "agent_session_id": "sess_reference_status",
    "device_id": "dev_00000000000000000000000000000001"
}).json()
jti = step1["attestation_id"]
data = httpx.get(f"{api}/v1/mandate/intents/{jti}", headers={"Authorization": f"Bearer {os.environ['PROVENANCE_KEY']}"}).json()
```
