---
title: "/t requests"
slug: "t-requests"
updated: 2023-02-22T02:07:02Z
published: 2023-02-22T02:07:02Z
---

> ## Documentation Index
> Fetch the complete documentation index at: https://code.tag.bio/llms.txt
> Use this file to discover all available pages before exploring further.

# /t requests

[As described above](https://code.tag.bio/v1/docs/fc-api-methods-high-level), the `/t` API method invokes a script or protocol in determinate mode - i.e. the response to the request will be a token with which the client can use to call back later to get progress or results (once the script/protocol completes).

## Request

The JSON payload requires either a valid Tag.bio script or protocol_instance.

## Example initial request

(protocol and script) Same as for [/q requests](https://code.tag.bio/v1/docs/q-requests) above.

## Example follow-up request

```
{
  "token":"XXX" <--Where XXX is the token provided in the initial response to the /t request
}
```

## Initial response

The response to the initial `/t` request will be a JSON object with progress status (e.g. % completed) and potentially a status or error message.

## Initial response example

```
{
  "token": "pncqpimctceulhbfkbbgqapnfc",
  "total": 1,
  "count": 0,
  "message": "Initializing analysis.",
  "results_next": false
}
```

## Penultimate response

After the FC has completed the query/analysis, the `"results_next"` attribute will be set to true. The next request will fetch the full response.

## Ultimate response

[The ultimate response to the /t request will be the same as for /q requests.](https://code.tag.bio/v1/docs/q-requests) NOTE - After this request, the token will be invalid.

## Content-Type

The FC will respond with the appropriate Content-Type header for the response payload.
