Create workspace tag

POST/v1/api/tags

Create a workspace tag using OAuth agent access.

Scope
workspace:write
Token
OAuth access token only
Role
Editor, owner or admin
MCP tool
create_tag · preview: MCP write tools are in preview
What scopes, tokens and roles mean →
Request
curl -X POST "https://api.crawle.io/v1/api/tags" \
  -H "Authorization: Bearer $CRAWLE_ACCESS_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"name":"Example"}'
const response = await fetch("https://api.crawle.io/v1/api/tags", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.CRAWLE_ACCESS_TOKEN}`,
    "Idempotency-Key": crypto.randomUUID(),
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "name": "Example"
  }),
});
const data = await response.json();
import os
import uuid

import requests

response = requests.request(
    "POST",
    "https://api.crawle.io/v1/api/tags",
    headers={
        "Authorization": f"Bearer {os.environ['CRAWLE_ACCESS_TOKEN']}",
        "Idempotency-Key": str(uuid.uuid4()),
    },
    json={
      "name": "Example"
    },
)
data = response.json()
$CRAWLE_ACCESS_TOKEN
is an OAuth access token from your integration's sign-in.
Idempotency-Key
is a new unique value for each new request.

Response 201: a JSON object. Its fields are not described in the API contract yet, so no example is shown.

Parameters

Idempotency-Keyheader · stringrequired
1–180 characters

Request body

namestringrequired
1–80 characters
archivedboolean or null
colorstring or null
up to 24 characters
settingsobject or null

Response 201

Returns a JSON object. Its fields are not described in the API contract yet.

Errors

  • 401

    When
    Missing, invalid, or expired token.
  • 403

    When
    The token has none of the accepted scopes (workspace:write).
  • 403

    When
    Called with an API key. This endpoint needs an OAuth access token.
  • 403

    When
    The person's workspace role is below editor.
  • 422

    When
    The request did not match the schema. detail lists each problem.
  • 429

    When
    Rate limited. Wait for Retry-After seconds.

All errors and what to do →

Generated from the API contract at 7e7039b0b, synced October 30, 2026.