Server4Agent API

Server4Agent API as documented publicly: 25 operations. Contract generated from the documentation by API Evangelist (2026-11-24); not the provider's own document.

GitHub OpenAPI

Operations 25

PATCH /keys/key_3f9 PATCH /keys/key_3f9 #
POST /pages POST /pages #
GET /pages/{id} The page's URL, whether it has been claimed, and when each clock runs out #
PUT /pages/{id} Replace every file of a page that has not been claimed yet #
GET /projects/{id} Poll a project until it reads ready or failed. #
POST /projects/{id}/export Export a project into a single file and receive a time‑limited download link. #
POST /projects/{id}/init Proceed with project bring‑up after awaiting secrets. #
PUT /projects/{id}/secrets Set project‑specific environment variables (secrets). #
GET /repos/vercel/next.js GET /repos/vercel/next.js #
PUT /secrets Set server‑wide environment variables (secrets). #
GET /servers GET /servers #
POST /servers POST /servers #
PUT /servers PUT /servers #
PUT /servers/srv_2k9/files PUT /servers/srv_2k9/files #
POST /servers/srv_2k9/tasks POST /servers/srv_2k9/tasks #
POST /servers/{id}/projects Create a project on a server from a source (blank, template, git repo, or archive). #
POST /servers/{id}/projects/import Import a previously exported project file (base64 encoded) into a server. #
DELETE /servers/{serverid} Delete a server #
GET /servers/{serverid} Get a server #
PATCH /servers/{serverid} Rename or relocate a server #
POST /servers/{serverid}/actions Start, stop, or restart a server #
POST /servers/{serverid}/exec Run a shell command on the server #
GET /webhooks List the account's webhook subscriptions. #
POST /webhooks POST /webhooks #
DELETE /webhooks/{id} Unsubscribe. #

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/server4agent-com:server4agent-com-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

server4agent-com-openapi-generated.yml Raw ↑
openapi: 3.1.0
info:
  title: Server4Agent API
  version: '2026-11-24'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-11-24: 25 operation(s) read from 8 public documentation page(s) (each operation
    names its page in x-source). This is not the provider''s published contract; Server4Agent has published no machine-readable contract that
    the pipeline could find. Engine: local.'
  x-evidence-tiers:
    code-example: 11
    documentation: 14
    pages-with-code: 8
    pages-read: 8
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-11-24'
  x-generator: generate-contract-from-docs.py
  x-engine: local
  x-sources:
  - https://www.server4agent.com/docs/api
  - https://www.server4agent.com/docs/api/reference
  - https://www.server4agent.com/developers
  - https://www.server4agent.com/docs/examples
  - https://www.server4agent.com/docs/webhooks
  - https://www.server4agent.com/docs/quickstart
  - https://www.server4agent.com/docs/authentication
  - https://www.server4agent.com/docs/pages
servers:
- url: https://api.server4agent.com
paths:
  /keys/key_3f9:
    patch:
      operationId: patch_keys_key_3f9
      tags:
      - Keys
      summary: PATCH /keys/key_3f9
      x-source: https://www.server4agent.com/docs/authentication
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: 'curl -X PATCH https://api.server4agent.com/keys/key_3f9  -H " Authorization: Bearer $ACCOUNT_KEY "  -d '' { "allowed_server_ids":
          ["srv_2k9"] } '' Next: MCP server → Connect an agent Create a key, paste the MCP config, and give your agent a persistent server it
          can build on. Start free now → MCP setup → Server 4 Agent Connect your AI assistant to a builder for live tools your team can open.
          Keep pro'
  /pages:
    post:
      operationId: post_pages
      tags:
      - Pages
      summary: POST /pages
      x-source: https://www.server4agent.com/docs/pages
      responses:
        '201':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostPagesResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl -X POST https://api.server4agent.com/pages  -H \" Content-Type: application/json \"  -H \" X-Server4Agent-Client: your-agent-name\
          \ \"  -d ' { \n \"files\": [ \n { \"path\": \"index.html\", \"content\": \"<!doctype html><h1>Hello</h1>\" }, \n { \"path\": \"style.css\"\
          , \"content\": \"h1 { color: teal }\" }, \n { \"path\": \"logo.png\", \"content\": \"iVBORw0KGgo...\", \"encoding\": \"base64\" } \n\
          \ ] \n } ' A page that is a single HTM"
  /pages/{id}:
    get:
      operationId: get_pages_id
      tags:
      - Pages
      summary: The page's URL, whether it has been claimed, and when each clock runs out
      x-source: https://www.server4agent.com/docs/pages
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetPagesIdResponse'
      x-evidence:
        kind: documentation
    put:
      operationId: put_pages_id
      tags:
      - Pages
      summary: Replace every file of a page that has not been claimed yet
      x-source: https://www.server4agent.com/docs/pages
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      - name: X-Update-Token
        in: header
        required: true
        schema:
          type: string
        description: Token returned when the page was created, required to authorize updates.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PutPagesIdRequest'
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /projects/{id}:
    get:
      operationId: get_projects_id
      tags:
      - Projects
      summary: Poll a project until it reads ready or failed.
      x-source: https://www.server4agent.com/docs/api
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /projects/{id}/export:
    post:
      operationId: post_projects_id_export
      tags:
      - Projects
      summary: Export a project into a single file and receive a time‑limited download link.
      x-source: https://www.server4agent.com/docs/api
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostProjectsIdExportResponse'
      x-evidence:
        kind: documentation
  /projects/{id}/init:
    post:
      operationId: post_projects_id_init
      tags:
      - Projects
      summary: Proceed with project bring‑up after awaiting secrets.
      x-source: https://www.server4agent.com/docs/api
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostProjectsIdInitRequest'
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /projects/{id}/secrets:
    put:
      operationId: put_projects_id_secrets
      tags:
      - Projects
      summary: Set project‑specific environment variables (secrets).
      x-source: https://www.server4agent.com/docs/api
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PutProjectsIdSecretsRequest'
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /repos/vercel/next.js:
    get:
      operationId: get_repos_vercel_next_js
      tags:
      - Repos
      summary: GET /repos/vercel/next.js
      x-source: https://www.server4agent.com/developers
      responses:
        '200':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetReposVercelNextJsResponse'
      x-evidence:
        kind: code-example
        language: javascript
        snippet: fetch("https://api.github.com/repos/vercel/next.js")
  /secrets:
    put:
      operationId: put_secrets
      tags:
      - Secrets
      summary: Set server‑wide environment variables (secrets).
      x-source: https://www.server4agent.com/docs/api
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PutSecretsRequest'
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /servers:
    get:
      operationId: get_servers
      tags:
      - Servers
      summary: GET /servers
      x-source: https://www.server4agent.com/docs/api/reference
      responses:
        '200':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetServersResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl https://api.server4agent.com/servers  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'\nTest Request\n(get /servers)\n\
          STATUS:\n200\nSTATUS:\n401\nShow Schema\n{\n \"servers\": [\n {\n \"id\": \"string\",\n \"task\": \"string\",\n \"tier\": \"small\"\
          ,\n \"kind\": \"standard\",\n \"status\": \"running\",\n \"region\": \"us-east\",\n \"creditsUsed\": 1,\n \"storageUsedGb\": 1,\n \"\
          publicUrl\": null,\n \"createdAt\": null\n }\n ]\n}\nThe caller's serv"
    post:
      operationId: post_servers
      tags:
      - Servers
      summary: POST /servers
      x-source: https://www.server4agent.com/docs/api
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: 'curl -X POST https://api.server4agent.com/servers  -H " Authorization: Bearer $SERVER4AGENT_API_KEY " '
    put:
      operationId: put_servers
      tags:
      - Servers
      summary: PUT /servers
      x-source: https://www.server4agent.com/docs/examples
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: 'curl -X PUT https://api.server4agent.com/servers/ $SRV /files  -H " Authorization: Bearer $SERVER4AGENT_API_KEY "  -d '' { "path":
          "app.py", "content": "print(\"hello from the agent\")" } '' '
  /servers/srv_2k9/files:
    put:
      operationId: put_servers_srv_2k9_files
      tags:
      - Servers
      summary: PUT /servers/srv_2k9/files
      x-source: https://www.server4agent.com/developers
      responses:
        '200':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PutServersSrv2K9FilesResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: 'curl -X PUT https://api.server4agent.com/servers/srv_2k9/files  -H " Authorization: Bearer $SERVER4AGENT_API_KEY "  -d '' {
          "path": "main.py", "content": "print(\"hello from REST\")" } '' '
  /servers/srv_2k9/tasks:
    post:
      operationId: post_servers_srv_2k9_tasks
      tags:
      - Servers
      summary: POST /servers/srv_2k9/tasks
      x-source: https://www.server4agent.com/docs/quickstart
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: 'curl -X POST https://api.server4agent.com/servers/srv_2k9/tasks  -H " Authorization: Bearer $SERVER4AGENT_API_KEY "  -d '' {
          "goal": "Build a landing page with a waitlist form and deploy it." } '' '
  /servers/{id}/projects:
    post:
      operationId: post_servers_id_projects
      tags:
      - Servers
      summary: Create a project on a server from a source (blank, template, git repo, or archive).
      x-source: https://www.server4agent.com/docs/api
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostServersIdProjectsRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostServersIdProjectsResponse'
      x-evidence:
        kind: documentation
  /servers/{id}/projects/import:
    post:
      operationId: post_servers_id_projects_import
      tags:
      - Servers
      summary: Import a previously exported project file (base64 encoded) into a server.
      x-source: https://www.server4agent.com/docs/api
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostServersIdProjectsImportRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostServersIdProjectsImportResponse'
      x-evidence:
        kind: documentation
  /servers/{serverid}:
    delete:
      operationId: delete_servers_serverid
      tags:
      - Servers
      summary: Delete a server
      description: Removes a server.
      x-source: https://www.server4agent.com/docs/api/reference
      parameters:
      - name: serverid
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
    get:
      operationId: get_servers_serverid
      tags:
      - Servers
      summary: Get a server
      description: Retrieves details of a specific server.
      x-source: https://www.server4agent.com/docs/api/reference
      parameters:
      - name: serverid
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
    patch:
      operationId: patch_servers_serverid
      tags:
      - Servers
      summary: Rename or relocate a server
      description: Updates server name or location.
      x-source: https://www.server4agent.com/docs/api/reference
      parameters:
      - name: serverid
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /servers/{serverid}/actions:
    post:
      operationId: post_servers_serverid_actions
      tags:
      - Servers
      summary: Start, stop, or restart a server
      description: Performs an action (start, stop, restart) on a server.
      x-source: https://www.server4agent.com/docs/api/reference
      parameters:
      - name: serverid
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /servers/{serverid}/exec:
    post:
      operationId: post_servers_serverid_exec
      tags:
      - Servers
      summary: Run a shell command on the server
      description: Executes a shell command on the specified server.
      x-source: https://www.server4agent.com/docs/api/reference
      parameters:
      - name: serverid
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /webhooks:
    get:
      operationId: get_webhooks
      tags:
      - Webhooks
      summary: List the account's webhook subscriptions.
      x-source: https://www.server4agent.com/docs/webhooks
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
    post:
      operationId: post_webhooks
      tags:
      - Webhooks
      summary: POST /webhooks
      x-source: https://www.server4agent.com/docs/webhooks
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl -X POST https://api.server4agent.com/webhooks  -H \" Authorization: Bearer $SERVER4AGENT_API_KEY \"  -d ' { \n \"url\"\
          : \"https://example.com/hooks/server4agent\", \n \"events\": [\"deployment.live\", \"task.completed\", \"quota.cap_reached\"] \n } '\
          \ GET /webhooks api key List the account's webhook subscriptions. DELETE /webhooks/{id} api key Unsubscribe. Event payload Every event\
          \ is delivered as JSON, signed"
  /webhooks/{id}:
    delete:
      operationId: delete_webhooks_id
      tags:
      - Webhooks
      summary: Unsubscribe.
      x-source: https://www.server4agent.com/docs/webhooks
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
components:
  schemas:
    PostPagesResponse:
      type: object
      properties:
        ' id ':
          type: string
        ' url ':
          type: string
        ' claim_url ':
          type: string
        ' update_token ':
          type: string
        ' expires_at ':
          type: string
        ' claim_expires_at ':
          type: string
        ' instructions ':
          type: string
    GetPagesIdResponse:
      type: object
      properties:
        id:
          type: string
        url:
          type: string
        claimed:
          type: boolean
        expires_at:
          type: string
        claim_expires_at:
          type: string
    PutPagesIdRequest:
      type: object
      properties:
        files:
          type: array
          description: Array of file objects that will replace the page's current files.
        path:
          type: string
          description: Path of the file within the page.
        content:
          type: string
          description: File content.
        encoding:
          type: string
          description: Set to "base64" if content is base64‑encoded.
      required:
      - files
      - path
      - content
    PostProjectsIdExportResponse:
      type: object
      properties:
        download_url:
          type: string
    PostProjectsIdInitRequest:
      type: object
      properties:
        proceed:
          type: boolean
          description: continue initialization
      required:
      - proceed
    PutProjectsIdSecretsRequest:
      type: object
      properties:
        key:
          type: string
          description: environment variable name
        value:
          type: string
          description: environment variable value (write‑only)
      required:
      - key
      - value
    GetReposVercelNextJsResponse:
      type: object
      properties:
        ' server_id ':
          type: string
        ' prompt ':
          type: string
    PutSecretsRequest:
      type: object
      properties:
        key:
          type: string
          description: environment variable name
        value:
          type: string
          description: environment variable value (write‑only)
      required:
      - key
      - value
    GetServersResponse:
      type: object
      properties:
        servers:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              task:
                type: string
              tier:
                type: string
              kind:
                type: string
              status:
                type: string
              region:
                type: string
              creditsUsed:
                type: integer
              storageUsedGb:
                type: integer
              publicUrl:
                type:
                - string
                - 'null'
              createdAt:
                type:
                - string
                - 'null'
    PutServersSrv2K9FilesResponse:
      type: object
      properties:
        ' server_id ':
          type: string
        ' prompt ':
          type: string
    PostServersIdProjectsRequest:
      type: object
      properties:
        source:
          type: string
          description: blank, template, git repo, or archive
      required:
      - source
    PostServersIdProjectsResponse:
      type: object
      properties:
        init_run_id:
          type: string
        init_phase:
          type: string
    PostServersIdProjectsImportRequest:
      type: object
      properties:
        bundle:
          type: string
          description: base64‑encoded project bundle
      required:
      - bundle
    PostServersIdProjectsImportResponse:
      type: object
      properties:
        missing_env:
          type: array
          description: list of environment variable names still missing
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
security:
- bearer: []
tags:
- name: Keys
- name: Pages
- name: Projects
- name: Repos
- name: Secrets
- name: Servers
- name: Webhooks