> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://infonite.dev/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://infonite.dev/_mcp/server.

# Check a token

GET https://clients.infonite.tech/api/executions/t10n/{token_id}

Check whether a token can still be used, and what it is scoped to.

Worth calling before a batch run, and worth calling when a tokenized execution is refused: this is where the reason lives.

**`status_code`, and what each one means for you**

| Status | What it means | What to do |
| :--- | :--- | :--- |
| `T10N_OK` | Ready. The last run authenticated. | Use it. |
| `T10N_KO` | Usable, but the last run did not complete. | Use it; if it keeps failing, ask for the credentials again. |
| `T10N_LOGIN_LOCK` | The source rejected the stored credentials, or locked the account. | Do not retry. Ask your customer for their access again and mint a new token. |
| `T10N_SYSTEM_LOCK` | Temporarily suspended by the platform. | Wait; if it persists, contact support. |
| `T10N_REVOKED` | Revoked. It will never run again. | Delete it and mint a new one. |
| `T10N_BROKEN` | The stored material can no longer be used. | Mint a new one. |

`context` repeats the scope: `engine_reference`, `customer_id`, `locking_hash` and the `features` the token may request. `date_expiration` is the hard end of its life — 90 days from the exchange, **not extended by use** — after which the stored credentials are deleted.

The token **key** is never returned here. If you lost it, the token is unusable: revoke it and start over.

> This endpoint needs to be executed with an app secret, so should always be used in server side without exposing the secret to customers.


Reference: https://infonite.dev/api-reference/direct-executions/direct-executions-api/tokenization/direct-executions-v-1-token-status

## Authentication

- `X-APP-SECRET` header (required) — Application Secret

## Servers

- `https://clients.infonite.tech/api` (Legacy Server, default)
- `https://clients.infonite.io/api` (Production Server)

## Request

### Path parameters

- `token_id` (string, required) — The stored-credentials token, as the exchange returned it.

## Response

### 200

**200 OK**What the token is for — the engine, the customer and the features it was scoped to — and whether it still works. **It never carries the credentials, nor your key**: nothing here can be turned back into a password.

- `token_id` (string, required) — Identifies the stored credentials — the same id you send when you run an execution with them.
- `date_created` (string, required) — When the ticket was exchanged for this token.
- `date_expiration` (string, required) — When it stops working. **Decided at the exchange and not extended by use**: a token that runs every month still expires on this date, and a new one needs a new execution with credentials.
- `status_code` (enum, required) — Whether the token is usable. Branch on this, not on the dates.
  - Allowed values: `T10N_DRAFT`, `T10N_OK`, `T10N_KO`, `T10N_REVOKED`, `T10N_SYSTEM_LOCK`, `T10N_LOGIN_LOCK`, `T10N_BROKEN`
- `context` (object, required) — Credentials context.
  - `engine_reference` (string, required) — The engine this execution runs, exactly as the catalogue publishes it. It is echoed on every event and every record, so a stored result says which source it came from with no lookup on your side.
  - `app_id` (string, required) — The application this execution was launched with — the one your secret belongs to. Worth keeping when your product uses more than one, a sandbox and a production app being the usual case: every record and every event we send carries it.
  - `customer_id` (string, required) — The `customer_id` you supplied when the execution was initialised, returned as you sent it — so an answer can be routed to the right case with no lookup on your side.
  - `features` (list of enum, required) — The features this token was minted for. **Fixed**: an execution using it may ask for fewer, never for one that is not on this list — a token cannot grow into new data about somebody.
    - Allowed values: `accounts_read`, `cards_read`, `deposits_read`, `loans_read`, `credits_read`, `investment_accounts_read`, `funds_read`, `stocks_read`, `pensions_read`, `accounts_certificates`, `direct_debits_read`, `customer_information_read`, `source_contracts_read`, `cloud_resource_read`, `supplier_invoices_read`, `client_invoices_read`, `labor_check`, `public_pensions`, `public_document_verification`, `yearly_individual_tax`, `vehicles_data`, `driver_data`, `academic_data`, `properties_data`, `credit_registry_data`
  - `locking_hash` (string, optional) — A deterministic fingerprint of the fixed part of the credentials — the username, typically. The same access always produces the same value, so a returning set of credentials is recognisable without storing any of it. It appears once a login has been attempted, and it is versioned (`v1.…`) so the derivation can change without the old values becoming ambiguous.
- `status_description` (string, optional) — Why it is in that state, in our words. Prose: read it, do not parse it.
- `status_message` (string, optional) — A message written to be shown to a person, when there is one.

## Errors

### 404 Not Found Error

**404 Not Found**No token with that id for your application, or it has been deleted. A token belonging to another application answers the same way.

- `detail` (string, required) — Error message

### 422 Unprocessable Entity Error

Validation Error

- `detail` (list of object, optional)
  - `loc` (list of string or integer, required)
  - `msg` (string, required)
  - `type` (string, required)
  - `input` (any, optional)
  - `ctx` (object, optional)

## Examples

**Response**

```json
{
  "token_id": "aaa48f1586c7ed54a13f559d",
  "date_created": "2026-09-12T10:17:42+00:00",
  "date_expiration": "2026-12-11T10:17:42+00:00",
  "status_code": "T10N_OK",
  "context": {
    "engine_reference": "DEMOBANKXXXXFIN100ES9999-mobile",
    "app_id": "4aa3dcbab3287e2385bb5cec",
    "customer_id": "my-customer-1",
    "features": [
      "accounts_read",
      "cards_read",
      "deposits_read",
      "loans_read",
      "investment_accounts_read",
      "stocks_read",
      "funds_read",
      "pensions_read",
      "customer_information_read"
    ],
    "locking_hash": "v1.36GHPwfDK-UUZGG4fb1jtg"
  }
}
```

**SDK Code**

```python Good for another run
import requests

url = "https://clients.infonite.tech/api/executions/t10n/aaa48f1586c7ed54a13f559d"

headers = {"X-APP-SECRET": "<apiKey>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript Good for another run
const url = 'https://clients.infonite.tech/api/executions/t10n/aaa48f1586c7ed54a13f559d';
const options = {method: 'GET', headers: {'X-APP-SECRET': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Good for another run
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://clients.infonite.tech/api/executions/t10n/aaa48f1586c7ed54a13f559d"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("X-APP-SECRET", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Good for another run
require 'uri'
require 'net/http'

url = URI("https://clients.infonite.tech/api/executions/t10n/aaa48f1586c7ed54a13f559d")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["X-APP-SECRET"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java Good for another run
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://clients.infonite.tech/api/executions/t10n/aaa48f1586c7ed54a13f559d")
  .header("X-APP-SECRET", "<apiKey>")
  .asString();
```

```php Good for another run
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://clients.infonite.tech/api/executions/t10n/aaa48f1586c7ed54a13f559d', [
  'headers' => [
    'X-APP-SECRET' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Good for another run
using RestSharp;

var client = new RestClient("https://clients.infonite.tech/api/executions/t10n/aaa48f1586c7ed54a13f559d");
var request = new RestRequest(Method.GET);
request.AddHeader("X-APP-SECRET", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Good for another run
import Foundation

let headers = ["X-APP-SECRET": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://clients.infonite.tech/api/executions/t10n/aaa48f1586c7ed54a13f559d")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```