---
title: POST · Create token
published: true
tier: free
index: 1
---

# POST · Create token

`POST /api/trpc/glue.automation.createToken`

**Body.** Send the project `siteId` and a `label` of 1–100 characters.

```json
{"json":{"siteId":"PROJECT_ID","label":"Release workflow"}}
```

**Returns.** `{id, token, expiresAt}`. The secret is shown once and expires after 90 days. A project can hold up to 50 active publishing tokens.
