Skip to main content
POST
https://tickward.com/api/v1
/
projects
/
{project_id}
/
spaces
Create a space
curl --request POST \
  --url https://tickward.com/api/v1/projects/{project_id}/spaces \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Travel"
}
'
{
  "object": "space",
  "id": "travel",
  "project_id": "project_123",
  "project_name": "Main",
  "name": "Travel",
  "color": "#2563eb",
  "created_at": "2026-06-07T12:00:00.000Z"
}

Authorizations

Authorization
string
header
default:tw_your_api_key
required

Use a tickward API key from Settings. API keys start with tw_. Store keys as secrets and send them as Authorization: Bearer <key>.

Headers

Idempotency-Key
string

Optional for POST, PATCH, and DELETE requests. Generate a random UUID with an operation prefix, for example timer-create-${crypto.randomUUID()}. Reuse the same key with the same method, path, query, and JSON body to safely retry one logical write for up to 24 hours. Reusing it with a different request returns 409. The server stores only a hash of the key.

Required string length: 8 - 128
Pattern: ^[A-Za-z0-9._:-]+$

Path Parameters

project_id
string
required

Body

application/json
name
string
required
Required string length: 1 - 30
id
string
Pattern: ^[A-Za-z0-9_-]{3,64}$
color
string

Use a hex color such as #2563eb. Empty string clears color where supported.

Pattern: ^$|^#[0-9a-fA-F]{6}$

Response

Space.

object
string
required
Allowed value: "space"
id
string
required
project_id
string
required
project_name
string
required

Human-readable project name for agent confirmations.

name
string
required
Maximum string length: 30
color
string | null
required
Pattern: ^#[0-9a-fA-F]{6}$
created_at
string<date-time>
required

ISO 8601 datetime string. Prefer UTC with Z or an explicit offset.

Pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}
Example:

"2026-10-10T09:30:00.000Z"