Skip to main content
POST
/
v1
/
workspace
/
{ws}
/
tokens
cURL
curl -X POST 'http://localhost:8080/v1/workspace/ws_example/tokens/' \
  -H 'Authorization: Bearer ek_live_xxxxx' \
  -H 'Content-Type: application/json' \
  -d '{ // request body fields, see schema }'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "token": "<string>",
  "name": "<string>",
  "prefix": "<string>",
  "scope": {
    "all": true,
    "teams": [
      "3c90c3cc-0d44-4b50-8888-8dd25736052a"
    ],
    "projects": [
      "3c90c3cc-0d44-4b50-8888-8dd25736052a"
    ],
    "environments": [
      "3c90c3cc-0d44-4b50-8888-8dd25736052a"
    ]
  },
  "expiresAt": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.enkryptify.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key authentication. Pass Authorization: Bearer ek_live_xxxxx on every request.

Path Parameters

ws
required
Required string length: 2 - 48
Pattern: ^[a-z0-9-]+$

Body

application/json
name
string
required
Required string length: 1 - 64
permission
enum<string>
required
Available options:
read,
read-write
scope
object
required
expiresIn
enum<string>
required
Available options:
24h,
5d,
30d,
60d,
3m,
6m

Response

201 - application/json

Default Response

id
string<uuid>
required
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
token
string
required
name
string
required
prefix
string
required
permission
enum<string>
required
Available options:
read,
read-write
scope
object
required
expiresAt
string
required