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

# Private Agent OpenAPI (machine contract)

> OpenAPI for TAT-158 PAT verify/introspect and authenticated /mcp agent host. Adapters remain staged.

> [!WARNING]
>
> PAT verify/introspect and `GET|POST /api/mcp` are live on `api.tattooapi.com` as of Railway deploy `a70bd1b8`. Issuance/revoke and full product adapters remain staged. This page hosts the machine contract because Mintlify Admin artifacts cannot ingest raw `.json` uploads via MCP.

```json theme={"dark"}
{
  "openapi": "3.0.3",
  "info": {
    "title": "TattooAPI Private Agent Surface",
    "version": "0.1.0",
    "description": "Private PAT-authenticated artist/studio agent surface (TAT-158). Not part of the public OpenAPI."
  },
  "servers": [{ "url": "https://api.tattooapi.com" }],
  "components": {
    "securitySchemes": {
      "PrivatePat": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "tat_live_... | tat_test_...",
        "description": "Private personal access token. Never interchangeable with public partner X-API-Key credentials."
      }
    },
    "schemas": {
      "PatScope": {
        "type": "string",
        "enum": [
          "portfolio:read",
          "leads:write",
          "quotes:read",
          "quotes:write",
          "profile:read",
          "portfolio:write",
          "availability:read",
          "bookings:read",
          "booking_rate:read"
        ]
      }
    }
  },
  "paths": {
    "/api/v1/auth/pats": {
      "post": {
        "summary": "Issue private PAT",
        "operationId": "issuePat",
        "tags": ["Private Auth"],
        "responses": { "201": { "description": "Token issued once" } }
      }
    },
    "/api/v1/auth/pats/verify": {
      "post": {
        "summary": "Verify PAT",
        "operationId": "verifyPat",
        "tags": ["Private Auth"],
        "responses": { "200": { "description": "Active PAT" }, "401": { "description": "Invalid" } }
      }
    },
    "/api/v1/auth/pats/revoke": {
      "post": {
        "summary": "Revoke PAT",
        "operationId": "revokePat",
        "tags": ["Private Auth"],
        "responses": { "200": { "description": "Revoked" } }
      }
    },
    "/api/v1/auth/pats/introspect": {
      "post": {
        "summary": "Introspect PAT",
        "operationId": "introspectPat",
        "tags": ["Private Auth"],
        "responses": { "200": { "description": "Active or inactive metadata" } }
      }
    },
    "/api/mcp": {
      "get": {
        "summary": "List MCP host metadata",
        "security": [{ "PrivatePat": [] }],
        "tags": ["Agent MCP"],
        "responses": { "200": { "description": "Tool catalog" } }
      },
      "post": {
        "summary": "Invoke MCP tool",
        "security": [{ "PrivatePat": [] }],
        "tags": ["Agent MCP"],
        "description": "Tools: list_contexts, search_operations, describe_operation, execute_operation",
        "responses": {
          "200": { "description": "Tool result" },
          "401": { "description": "Missing/invalid PAT" },
          "403": { "description": "Scope denied" }
        }
      }
    }
  }
}
```


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