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

# Mark an API key copied

> Records that something carrying the key's secret was copied, such as a Connect setup.

> [accordion] Details
>
> A connect key is then yours: it is listed, and a newer connect key never revokes it to make room. Only the first mark changes the key: a connect key then lives 90 days from it, never less than it had. A key that has expired or been revoked is not found.
>
> * **Callers:** an API key, an MCP OAuth token or a Dashboard session.
> * **Permission:** any signed-in member, for their own records; an API key also needs `api_keys:manage`.
> * **Effect:** Creates or changes something.
> * **Errors:** [`not_found`](https://docs.pomerado.ai/errors#not_found), and the [errors any request can get](https://docs.pomerado.ai/errors.md).


## OpenAPI

````yaml /api-reference/openapi.json post /v1/api-keys/{id}/copied
openapi: 3.1.0
info:
  title: Pomerado API
  version: '1'
  description: >-
    Run and build website tools, follow their jobs, and manage logins, API keys
    and webhooks. Authenticate with a Pomerado API key (pom_…), an MCP OAuth
    token or a Dashboard session as a Bearer token.
servers:
  - url: https://api.pomerado.ai
security: []
tags:
  - name: account
    x-group: Account
  - name: api_keys
    x-group: API keys
  - name: connected_apps
    x-group: Connected apps
  - name: usage
    x-group: Usage
  - name: quota
    x-group: Quota
  - name: billing
    x-group: Billing
  - name: integrations
    x-group: Integrations
  - name: connect
    x-group: Connect
  - name: code
    x-group: Code
  - name: logins
    x-group: Saved logins
  - name: two_factor
    x-group: 2FA
  - name: login_access
    x-group: Login access
  - name: tools
    x-group: Tools
  - name: webhooks
    x-group: Webhooks
  - name: runs
    x-group: Runs
  - name: builds
    x-group: Builds
  - name: jobs
    x-group: Jobs
  - name: suggestions
    x-group: Suggestions
  - name: audit
    x-group: Audit
  - name: files
    x-group: Files
  - name: team
    x-group: Team
  - name: sso
    x-group: Single sign-on
  - name: issue_reports
    x-group: Problem reports
paths:
  /v1/api-keys/{id}/copied:
    post:
      tags:
        - api_keys
      summary: Mark an API key copied
      description: >-
        Records that something carrying the key's secret was copied, such as a
        Connect setup.
      operationId: api_keys.mark_copied
      parameters:
        - name: id
          in: path
          required: true
          description: 'an API key ID: key_ and 32 lowercase hex digits'
          schema:
            type: string
            examples:
              - key_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190
      responses:
        '200':
          description: The key, now listed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiKey'
        '400':
          description: invalid_request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: unauthorized, reauthentication_required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: not_found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: internal_error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: temporarily_unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearer: []
components:
  schemas:
    ApiKey:
      type: object
      required:
        - id
        - name
        - permissions
        - integration_id
        - prefix
        - created_via
        - created_at
        - expires_at
        - last_used_at
        - purpose
      properties:
        id:
          $ref: '#/components/schemas/api_key_id'
        name:
          type: string
          examples:
            - Nightly price check
        permissions:
          type: array
          items:
            type: string
            enum:
              - tools:read
              - usage:read
              - tools:build
              - runs:create
              - jobs:read
              - jobs:cancel
              - logins:read
              - logins:manage
              - api_keys:manage
              - billing:manage
              - team:manage
          examples:
            - - tools:read
              - runs:create
              - jobs:read
        integration_id:
          anyOf:
            - $ref: '#/components/schemas/integration_id'
            - type: 'null'
          description: The one integration the key is bound to, or null for an account key
        prefix:
          type: string
          description: The token's visible start, pom_ and 8 hex digits, to tell keys apart
          examples:
            - pom_0f8e2d1c
        created_via:
          type: string
          enum:
            - dashboard
            - api
            - mcp
          description: Where the key was created
        created_at:
          $ref: '#/components/schemas/Timestamp'
        expires_at:
          $ref: '#/components/schemas/Timestamp'
        last_used_at:
          anyOf:
            - $ref: '#/components/schemas/Timestamp'
            - type: 'null'
          description: >-
            When a request last used the key, to within a minute, or null if
            none has
        purpose:
          anyOf:
            - type: string
              enum:
                - connect
            - type: 'null'
          description: connect for a key the Connect page made, else null
      additionalProperties: false
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
            - retryable
            - docs_url
          properties:
            code:
              type: string
            message:
              type: string
            retryable:
              type: boolean
            docs_url:
              type: string
            details:
              type: object
              required: []
              properties: {}
              additionalProperties:
                $id: /schemas/unknown
          additionalProperties: false
      additionalProperties: false
    api_key_id:
      type: string
      description: 'an API key ID: key_ and 32 lowercase hex digits'
      examples:
        - key_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190
    integration_id:
      type: string
      description: 'an integration ID: int_ and 32 lowercase hex digits'
      examples:
        - int_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190
    Timestamp:
      type: string
      format: date-time
      description: An ISO 8601 timestamp in UTC
      examples:
        - '2026-10-05T18:30:00.000Z'
  securitySchemes:
    bearer:
      type: http
      scheme: bearer

````

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