# TOKEN (required)

Real-time endpoint:

```
https://app.posetracker.com/pose_tracker/tracking?token=YOUR_API_KEY&exercise=squat
```

Upload endpoint:

```
https://app.posetracker.com/pose_tracker/upload_tracking?token=YOUR_API_KEY&source=video&exercise=squat
```

***

### Definition

* **Type:** `string`
* **Required:** yes
* **Description:** Your PoseTracker API key.

PoseTracker uses the token to:

* authenticate requests
* determine plan restrictions (Free vs Developer vs Custom/Company)
* enable/disable developer outputs like keypoints, angles, BlazePose, export, etc.

***

### Error behavior

If the token is missing or invalid, PoseTracker emits:

```json
{
  "type": "error",
  "code": "invalid_token",
  "message": "Invalid or missing token."
}
```

If the token is valid but does not allow a requested feature (example: `angles=true` on Free plan), PoseTracker emits:

```json
{
  "type": "error",
  "code": "developer_feature_not_allowed",
  "message": "You cannot use developer features on your current plan.",
  "details": {
    "blocked": ["angles", "keypoints"]
  }
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://posetracker.gitbook.io/posetracker-api/use-posetracker-on-real-time-camera-webcam/query-params-details/token-required.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
