> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pilotstatus.com.br/llms.txt
> Use this file to discover all available pages before exploring further.

# Unlink the shared card

> Unlinks the reserve card from `{workspaceId}`: from then on your card no longer pays that customer's renewals, and a failed renewal suspends only that workspace. No body. Owner of `{workspaceId}` only. Idempotent: not linked → `200` with `changed: false`. On a change, the workspace's History records **Backup card unlinked** (no e-mail).

**Requires an account key** (`ps_account_`, created in Profile → API). Workspace keys, number keys and OAuth/MCP tokens get `403 ACCOUNT_KEY_REQUIRED`. Sent with `Cache-Control: no-store`.

> [!WARNING]
>
> **Your reserve card stops paying this workspace's renewals right away.** If its own wallet and card do not cover the next renewal, the workspace is suspended. Requires an account key (`ps_account_`) and the Owner role. See [Shared card per workspace](https://docs.pilotstatus.com.br/api/workspaces.md#shared-card-per-workspace).


## OpenAPI

````yaml openapi.json DELETE /v1/workspaces/{workspaceId}/shared-card
openapi: 3.1.0
info:
  title: Pilot Status API
  version: 1.0.0
  license:
    name: Pilot Status Terms of Service
    url: https://pilotstatus.com.br/terms
  description: >-
    Public REST API for Pilot Status. Authenticate with the `x-api-key: ps_...`
    header (or `x-api-key-id`). Base URL: https://pilotstatus.com.br
servers:
  - url: https://pilotstatus.com.br
security:
  - apiKey: []
  - apiKeyId: []
paths:
  /v1/workspaces/{workspaceId}/shared-card:
    delete:
      tags:
        - Workspace
      summary: Unlink the shared card
      description: >-
        Unlinks the reserve card from `{workspaceId}`: from then on your card no
        longer pays that customer's renewals, and a failed renewal suspends only
        that workspace. No body. Owner of `{workspaceId}` only. Idempotent: not
        linked → `200` with `changed: false`. On a change, the workspace's
        History records **Backup card unlinked** (no e-mail).


        **Requires an account key** (`ps_account_`, created in Profile → API).
        Workspace keys, number keys and OAuth/MCP tokens get `403
        ACCOUNT_KEY_REQUIRED`. Sent with `Cache-Control: no-store`.
      operationId: delete_workspaces_shared_card
      parameters:
        - name: workspaceId
          in: path
          required: true
          schema:
            type: string
          description: Workspace id, from `GET /v1/workspaces`.
          example: cmh2a9z8y0002ws8example1q
      responses:
        '200':
          description: 'Unlinked (or was not linked: `changed: false`)'
          content:
            application/json:
              schema:
                type: object
                properties:
                  workspaceId:
                    type: string
                  sharedCard:
                    type: object
                    description: >-
                      Whether the workspace is linked to a shared (reserve)
                      card, and to which source workspace.
                    properties:
                      linked:
                        type: boolean
                        description: >-
                          `true` when the workspace falls back to the reserve
                          card of `sourceWorkspaceId`.
                      sourceWorkspaceId:
                        type:
                          - string
                          - 'null'
                        description: >-
                          The workspace whose saved card backs this one; `null`
                          when not linked.
                    required:
                      - linked
                      - sourceWorkspaceId
                  changed:
                    type: boolean
                    description: >-
                      `false` when the workspace was already in the requested
                      state: nothing was recorded.
              example:
                workspaceId: cmh2a9z8y0002ws8example1q
                sharedCard:
                  linked: false
                  sourceWorkspaceId: null
                changed: true
          headers:
            Cache-Control:
              schema:
                type: string
              example: no-store
        '400':
          description: '`UNKNOWN_FIELDS` — the endpoint takes no body'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
              examples:
                unknownFields:
                  summary: A field was sent
                  value:
                    error: >-
                      This endpoint takes no body fields | Este endpoint não
                      aceita campos no corpo
                    code: UNKNOWN_FIELDS
        '401':
          description: Missing, invalid or revoked API key
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
              example:
                error: Invalid API key
        '403':
          description: >-
            Not an account key (`ACCOUNT_KEY_REQUIRED`), not an active member of
            the workspace or the workspace does not exist / is archived
            (`WORKSPACE_MEMBERSHIP_REQUIRED`), or a role below Owner
            (`PERMISSION_DENIED`)
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
              example:
                error: >-
                  This endpoint requires an account API key (ps_account_…),
                  created in Profile → API. Workspace keys, number keys and
                  OAuth tokens cannot use it | Este endpoint exige uma API key
                  de conta (ps_account_…), criada em Perfil → API. Chaves de
                  workspace, de número e tokens OAuth não podem usá-lo
                code: ACCOUNT_KEY_REQUIRED
        '409':
          description: >-
            `NO_SHARED_OWNER` — the workspace is linked to a source you are not
            an active Owner of
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
              examples:
                noSharedOwner:
                  summary: Not an owner of the source
                  value:
                    error: >-
                      You are not an active owner of the workspace of the
                      reserve card | Você não é dono ativo do workspace do
                      cartão de reserva
                    code: NO_SHARED_OWNER
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: Your ps_ API key
    apiKeyId:
      type: apiKey
      in: header
      name: x-api-key-id
      description: API key id (alternative to x-api-key)

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.