Skip to content
Navigation

Create a space

Creates a space: a named container for files and runs that you address explicitly.

Everything the API does without a space happens in a hidden workspace where files are temporary and die with their run. Inside a space it is the other way round — files belong to the space, outlive the runs that produced them, and are indexed for search.

{ "name": "Acme onboarding", "ttl": 604800 }

Lifetime. ttl is seconds from now, from 300 to 7776000 (90 days), and defaults to one week. Once expiresAt passes the space is gone from this API: the next call that addresses it — or DELETE /v1/spaces/{spaceId} — closes it and deletes its files. Extend the deadline at any time with PATCH /v1/spaces/{spaceId}.

Learn more: Spaces

POST
https://api.cloudraker.com/v1/spaces
Try it
Request body
Live API request

This request can change data or incur charges for the selected organization.

Authorization

  • bearerAuth
    HTTP
    required

Request body JSON required

  • name
    optional
    string
    maxLength: 120 · minLength: 1
  • ttl
    optional
    integer

    Seconds until the space expires, from now.

    maximum: 7776000 · minimum: 300

Returns

201

The created space.

JSON
  • object
    string
    required
  • id
    string
    required
  • name
    string
    required
  • createdAt
    string
    required
  • expiresAt
    string | null
    required

400

Invalid request (invalid_request).

429

Rate limited. The /v1 API allows at least 67 requests per minute per organization (about 1,000 requests per 15 minutes) — a guaranteed floor, enforced per edge location, so a geographically spread caller may get more. Wait for the Retry-After interval and retry — the error is retryable.
JSON
  • code
    rate_limited
    required
  • message
    string
    required
  • retryable
    true
    required
  • requestId
    string
    required
  • docUrl
    optional
    string

Type to search…

↑↓ navigate↵ selectEsc close