Spacesheep Space Render Service API

The SpaceRenderService API from Spacesheep — 3 operation(s) for spacerenderservice.

GitHub OpenAPI

Operations 3

GET /v1/spaces/{space_id}:screenshot A PNG of a published space as a browser draws it, at any width or of one block… #
GET /v1/spaces/{space_id}:review A vision model scores a space's look on a phone and a desktop: findings, the… #
GET /v1/spaces/{space_id}:export A link to a PDF of a space as it prints, rendered on request from its current… #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/spacesheep-dev:spacesheep-dev-spacerenderservice-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

spacesheep-dev-spacerenderservice-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: spacesheep Space Render Service API
  version: v1
  contact:
    name: spacesheep
    url: https://spacesheep.dev/feedback
  description: 'spacesheep''s API: every call it answers today, made from the same call table as `/v1/doors.json`. Each call is also an MCP tool (`x-mcp-tool`) and a CLI command (`x-cli-command`). `x-callers` says which kinds of connection may make it: `person`, a person in the browser; `key`, your API keys (the CLI, scripts); `read_key`, read-only API keys; `connector`, apps you connected (Claude, ChatGPT, Gemini, Grok); `connector_read`, read-only connected apps; `agent`, spacesheep''s own agents; `box`, cloud boxes; `stream`, a streams-only key (a machine sending values). A refusal is an `ErrorInfo`: `code` is a word a program can branch on, and each call lists the words it can give, with what they mean.'
servers:
- url: https://spacesheep.dev
tags:
- name: SpaceRenderService
paths:
  /v1/spaces/{space_id}:screenshot:
    get:
      operationId: screenshot_space
      summary: A PNG of a published space as a browser draws it, at any width or of one block…
      tags:
      - SpaceRenderService
      parameters:
      - name: space_id
        in: path
        required: true
        description: 'The space: its link (a sub-path in it is the page), @handle/slug or uuid. Private ones render as you. A name (not an id) goes here and in `space` too, as one path segment: a `/` is `%2F`.'
        schema:
          type: string
      - name: space
        in: query
        required: false
        description: 'The space: its link (a sub-path in it is the page), @handle/slug or uuid. Private ones render as you. (space name)'
        schema:
          type: string
      - name: path
        in: query
        required: false
        description: A page inside it, /notes.html; overrides the link's sub-path. (text; at most 512 characters)
        schema:
          type: string
      - name: full_page
        in: query
        required: false
        description: The whole scrollable page, or only the first screen; the whole page when left out. (true or false)
        schema:
          type: boolean
      - name: width
        in: query
        required: false
        description: 'Viewport width in CSS pixels: 390 for a phone; 1280 when left out. (integer; 320 to 1920)'
        schema:
          type: integer
          minimum: 320
          maximum: 1920
      - name: height
        in: query
        required: false
        description: Viewport height in CSS pixels, the fold; 800 when left out. (integer; 320 to 2000)
        schema:
          type: integer
          minimum: 320
          maximum: 2000
      - name: section
        in: query
        required: false
        description: 'One block''s data-ss-id: only that element is captured. (text; at most 120 characters)'
        schema:
          type: string
      responses:
        '200':
          description: 'Done: the call''s answer.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  png:
                    type: string
                  final_url:
                    type: string
                  off_origin:
                    type: boolean
                  csp_violations:
                    type: array
                    items:
                      type: object
                      properties:
                        kind:
                          type: string
                        url:
                          type: string
                        reason:
                          type: string
                        status:
                          type: integer
                  resource_failures:
                    type: array
                    items:
                      type: object
                      properties:
                        kind:
                          type: string
                        url:
                          type: string
                        reason:
                          type: string
                        status:
                          type: integer
        '400':
          description: '`invalid`: An input broke a rule (`violations` names it when it can). Fix it and send again.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorInfo'
                properties:
                  code:
                    enum:
                    - invalid
        '401':
          description: '`unauthenticated`: No credential, or one that expired or was revoked. Sign in, or send a valid key.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorInfo'
                properties:
                  code:
                    enum:
                    - unauthenticated
        '403':
          description: '`forbidden`: This account, or this kind of connection, may not do this here. Resending won''t help.


            `insufficient_scope`: This call is outside the key''s or token''s scope; a streams or session-hooks key opens none. Use a full key.


            `needs_consent`: This call needs a permission you haven''t given yet; open the link to answer.


            `not_granted`: This call is outside what the skill may ever ask for, so it can''t be granted. Nothing changed.


            `not_in_trial`: A trial can''t reach MCP or an outside host. Carry a fixture in the draft, or approve it first.


            `read_only_grant`: This read-only connection (a read key, or a spacesheep:read grant) can''t make this call. Use a full key.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorInfo'
                properties:
                  code:
                    enum:
                    - forbidden
                    - insufficient_scope
                    - needs_consent
                    - not_granted
                    - not_in_trial
                    - read_only_grant
        '404':
          description: '`not_found`: Nothing by that name or id here: no such space, version, file, comment, post, list, team or member.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorInfo'
                properties:
                  code:
                    enum:
                    - not_found
        '409':
          description: '`replay_mismatch`: This restarted run asked for a different call than the one that already ran here; nothing was written.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorInfo'
                properties:
                  code:
                    enum:
                    - replay_mismatch
        '413':
          description: '`payload_too_large`: Too big: over the request''s size cap, or over the plan''s limits on files and bytes.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorInfo'
                properties:
                  code:
                    enum:
                    - payload_too_large
        '500':
          description: '`internal`: Something failed on spacesheep''s side; the call may not have finished. Read before you try again.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorInfo'
                properties:
                  code:
                    enum:
                    - internal
        '503':
          description: '`unavailable`: A service behind the call is down or unreachable. Try again soon.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorInfo'
                properties:
                  code:
                    enum:
                    - unavailable
      security:
      - bearer: []
      - session: []
      x-mcp-tool: screenshot_space
      x-cli-command: spacesheep spaces screenshot
      x-callers:
      - person
      - key
      - connector
      - connector_read
      - agent
      - box
  /v1/spaces/{space_id}:review:
    get:
      operationId: review_space
      summary: 'A vision model scores a space''s look on a phone and a desktop: findings, the…'
      tags:
      - SpaceRenderService
      parameters:
      - name: space_id
        in: path
        required: true
        description: 'The space: its link (a sub-path in it is the page), @handle/slug or uuid. Uses the owner''s own model key. A name (not an id) goes here and in `space` too, as one path segment: a `/` is `%2F`.'
        schema:
          type: string
      - name: space
        in: query
        required: false
        description: 'The space: its link (a sub-path in it is the page), @handle/slug or uuid. Uses the owner''s own model key. (space name)'
        schema:
          type: string
      - name: path
        in: query
        required: false
        description: A page inside it, /notes.html; overrides the link's sub-path. (text; at most 512 characters)
        schema:
          type: string
      responses:
        '200':
          description: 'Done: the call''s answer.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  verdict:
                    type: string
                  score:
                    type: integer
                  findings:
                    type: array
                    items:
                      type: object
                      properties:
                        gate:
                          type: string
                        severity:
                          type: string
                        where:
                          type: string
                        evidence:
                          type: string
                        fix:
                          type: string
                  strengths:
                    type: array
                    items:
                      type: string
                  viewports:
                    type: array
                    items:
                      type: object
                      properties:
                        width:
                          type: integer
                        height:
                          type: integer
                        final_url:
                          type: string
                        off_origin:
                          type: boolean
                  csp_violations:
                    type: array
                    items:
                      type: object
                      properties:
                        kind:
                          type: string
                        url:
                          type: string
                        reason:
                          type: string
                        status:
                          type: integer
                  resource_failures:
                    type: array
                    items:
                      type: object
                      properties:
                        kind:
                          type: string
                        url:
                          type: string
                        reason:
                          type: string
                        status:
                          type: integer
                  reviewed_by:
                    type: string
        '400':
          description: '`invalid`: An input broke a rule (`violations` names it when it can). Fix it and send again.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorInfo'
                properties:
                  code:
                    enum:
                    - invalid
        '401':
          description: '`unauthenticated`: No credential, or one that expired or was revoked. Sign in, or send a valid key.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorInfo'
                properties:
                  code:
                    enum:
                    - unauthenticated
        '403':
          description: '`forbidden`: This account, or this kind of connection, may not do this here. Resending won''t help.


            `insufficient_scope`: This call is outside the key''s or token''s scope; a streams or session-hooks key opens none. Use a full key.


            `needs_consent`: This call needs a permission you haven''t given yet; open the link to answer.


            `not_granted`: This call is outside what the skill may ever ask for, so it can''t be granted. Nothing changed.


            `not_in_trial`: A trial can''t reach MCP or an outside host. Carry a fixture in the draft, or approve it first.


            `read_only_grant`: This read-only connection (a read key, or a spacesheep:read grant) can''t make this call. Use a full key.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorInfo'
                properties:
                  code:
                    enum:
                    - forbidden
                    - insufficient_scope
                    - needs_consent
                    - not_granted
                    - not_in_trial
                    - read_only_grant
        '404':
          description: '`not_found`: Nothing by that name or id here: no such space, version, file, comment, post, list, team or member.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorInfo'
                properties:
                  code:
                    enum:
                    - not_found
        '409':
          description: '`replay_mismatch`: This restarted run asked for a different call than the one that already ran here; nothing was written.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorInfo'
                properties:
                  code:
                    enum:
                    - replay_mismatch
        '413':
          description: '`payload_too_large`: Too big: over the request''s size cap, or over the plan''s limits on files and bytes.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorInfo'
                properties:
                  code:
                    enum:
                    - payload_too_large
        '500':
          description: '`internal`: Something failed on spacesheep''s side; the call may not have finished. Read before you try again.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorInfo'
                properties:
                  code:
                    enum:
                    - internal
        '503':
          description: '`unavailable`: A service behind the call is down or unreachable. Try again soon.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorInfo'
                properties:
                  code:
                    enum:
                    - unavailable
      security:
      - bearer: []
      - session: []
      x-mcp-tool: review_space
      x-cli-command: spacesheep spaces review
      x-callers:
      - person
      - key
      - connector
      - connector_read
      - agent
      - box
  /v1/spaces/{space_id}:export:
    get:
      operationId: export_space
      summary: A link to a PDF of a space as it prints, rendered on request from its current…
      tags:
      - SpaceRenderService
      parameters:
      - name: space_id
        in: path
        required: true
        description: 'The space: its link, @handle/slug or uuid. Private ones render as you. A name (not an id) goes here and in `space` too, as one path segment: a `/` is `%2F`.'
        schema:
          type: string
      - name: space
        in: query
        required: false
        description: 'The space: its link, @handle/slug or uuid. Private ones render as you. (space name)'
        schema:
          type: string
      - name: paper
        in: query
        required: false
        description: Paper size; letter when left out. (one of letter, a4)
        schema:
          type: string
          enum:
          - letter
          - a4
      - name: landscape
        in: query
        required: false
        description: Landscape, for wide tables and dashboards. (true or false)
        schema:
          type: boolean
      responses:
        '200':
          description: 'Done: the call''s answer.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  url:
                    type: string
                  expires_at:
                    type: string
                    format: date-time
                  file_name:
                    type: string
        '400':
          description: '`invalid`: An input broke a rule (`violations` names it when it can). Fix it and send again.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorInfo'
                properties:
                  code:
                    enum:
                    - invalid
        '401':
          description: '`unauthenticated`: No credential, or one that expired or was revoked. Sign in, or send a valid key.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorInfo'
                properties:
                  code:
                    enum:
                    - unauthenticated
        '403':
          description: '`forbidden`: This account, or this kind of connection, may not do this here. Resending won''t help.


            `insufficient_scope`: This call is outside the key''s or token''s scope; a streams or session-hooks key opens none. Use a full key.


            `needs_consent`: This call needs a permission you haven''t given yet; open the link to answer.


            `not_granted`: This call is outside what the skill may ever ask for, so it can''t be granted. Nothing changed.


            `not_in_trial`: A trial can''t reach MCP or an outside host. Carry a fixture in the draft, or approve it first.


            `read_only_grant`: This read-only connection (a read key, or a spacesheep:read grant) can''t make this call. Use a full key.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorInfo'
                properties:
                  code:
                    enum:
                    - forbidden
                    - insufficient_scope
                    - needs_consent
                    - not_granted
                    - not_in_trial
                    - read_only_grant
        '404':
          description: '`not_found`: Nothing by that name or id here: no such space, version, file, comment, post, list, team or member.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorInfo'
                properties:
                  code:
                    enum:
                    - not_found
        '409':
          description: '`replay_mismatch`: This restarted run asked for a different call than the one that already ran here; nothing was written.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorInfo'
                properties:
                  code:
                    enum:
                    - replay_mismatch
        '413':
          description: '`payload_too_large`: Too big: over the request''s size cap, or over the plan''s limits on files and bytes.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorInfo'
                properties:
                  code:
                    enum:
                    - payload_too_large
        '422':
          description: '`wrong_kind`: Not on this kind of space: a flock isn''t archived, for one.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorInfo'
                properties:
                  code:
                    enum:
                    - wrong_kind
        '500':
          description: '`internal`: Something failed on spacesheep''s side; the call may not have finished. Read before you try again.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorInfo'
                properties:
                  code:
                    enum:
                    - internal
      security:
      - bearer: []
      - session: []
      x-mcp-tool: export_space
      x-cli-command: spacesheep spaces export
      x-callers:
      - person
      - key
      - connector
      - connector_read
      - agent
      - box
components:
  schemas:
    ErrorInfo:
      type: object
      description: Why a call was refused.
      required:
      - code
      - message
      - violations
      properties:
        code:
          type: string
          enum:
          - invalid
          - bad_host
          - bad_path
          - unauthenticated
          - forbidden
          - read_only_grant
          - insufficient_scope
          - not_granted
          - needs_consent
          - not_in_trial
          - content_blocked
          - not_found
          - conflict
          - turn_held
          - replay_mismatch
          - payload_too_large
          - signed_space
          - wrong_kind
          - answer_too_large
          - failed_precondition
          - rate_limited
          - quota_exceeded
          - suspended
          - publish_failed
          - internal
          - unimplemented
          - unavailable
          description: A word a program can branch on. What each one means is in the responses that give it.
        message:
          type: string
          description: One sentence for a person.
        violations:
          type: array
          description: The inputs that broke a rule, when the refusal can name them.
          items:
            type: object
            required:
            - field
            - message
            properties:
              field:
                type: string
                description: The input, as a dotted path.
              message:
                type: string
                description: What's wrong with it.
        consent:
          type: object
          description: 'For `needs_consent`: the ask it opened. Open `url` to answer.'
          properties:
            id:
              type: string
            url:
              type: string
            scope:
              type: string
              description: The one scope asked for; empty for an install.
            why:
              type: string
            kind:
              type: string
              enum:
              - SKILL_CONSENT_KIND_INSTALL
              - SKILL_CONSENT_KIND_MOMENT
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      description: A spacesheep key (`ss_…`, from Settings → API keys), or an OAuth access token from a connected app.
    session:
      type: apiKey
      in: cookie
      name: ss_app
      description: A signed-in browser session on spacesheep. A write sent from another site is refused.
externalDocs:
  description: The docs
  url: https://spacesheep.dev/docs