# FAQ

## Authentication

**How do I get API credentials?**

[Contact us](/getting-started/support). You receive a `client_id` and a `client_secret` for the OAuth 2.0 client credentials flow. See [Prerequisites](/getting-started/prerequisites).

**Which scope do I ask for?**

`t1_api`. It is the only scope.

**How long does a token last?**

The token response gives its lifetime in `expires_in` (seconds). Reuse the token and renew it shortly before it expires. See [Authentication](/getting-started/authentication).

**Can I call the APIs with a user's token?**

No. The APIs accept only client credentials tokens. A user token gets `401`.

**I get `403 Forbidden`. What is wrong?**

Your token is valid, but your company has no access to that resource or operation. Check that the resource belongs to your company or is shared with it.

## Environments

**Which environments are there?**

Production only: `https://apis.traceone.com`, with one base URL per API. See [Prerequisites](/getting-started/prerequisites#2-base-urls).

## Conventions

**How does pagination work?**

`pageNumber` (from 1) and `pageSize` (up to 100). Read pages until `hasNextPage` is `false`. See [Coding practices](/getting-started/coding-practices#pagination).

**How do I read many items by ID?**

Use the batch operation: in the Specification API, `POST .../collection` with up to 50 IDs. See [Coding practices](/getting-started/coding-practices#batch-reads).

**What format are IDs?**

UUIDs.

**What format are enum values?**

PascalCase, as listed in the API reference: `InProgress`, `Validated`, `Packaging`. New values can be added: handle values you do not know.

## Versions and stages

**How are APIs versioned?**

The version is in the base URL: `https://apis.traceone.com/{product}/v2/...`. A breaking change ships in a new version, and the previous one stays available at least 12 months. See [Versioning and stages](/getting-started/api-versioning).

**What does the preview (`v2-preview`) contain?**

Operations that are **limited** (in production, available by agreement) or **designed** (not in production yet). Both may still change. The API reference (`v2`) shows only **public** operations. See [Stages](/getting-started/api-versioning#stages).

## Specifications

**What is the difference between food and packaging specifications?**

Both are in the Specification API, with different chapters. Food specifications have general, labelling, production, testing and finished-product chapters. Packaging specifications have general, attestation, testing and packaging-system chapters.

**What are the specification statuses?**

`Draft`, `InProgress`, `Validated`, `Signed`, `Revised`, `Cancelled`.

## Rate limits

**What is the rate limit?**

100 requests per second per `client_id`.

**What happens above the limit?**

You get `429 Too Many Requests`, without a `Retry-After` header. Retry with exponential backoff. See [Rate limits](/getting-started/rate-limits).

## Reference Data

**What is the difference between reference lists and functional lists?**

Reference lists are generic dropdown values; a retailer may customise some of them. Functional lists (nutrients, allergens…) are defined by Trace One and are not configurable. See [Using Reference Data](/getting-started/using-reference-data).

## Support

**How do I report a problem or ask for a feature?**

See [Support](/getting-started/support) for what to send.