{"openapi":"3.0.0","paths":{"/api/v1/integration/mcp/icon.png":{"get":{"operationId":"McpIconController_icon[0]","parameters":[],"responses":{"200":{"description":""}},"summary":"The MCP server icon (PNG): icon.png / icon-dark.png (256px), icon-64.png / icon-dark-64.png.","tags":["Integration API"]}},"/api/v1/integration/mcp/icon-dark.png":{"get":{"operationId":"McpIconController_icon[1]","parameters":[],"responses":{"200":{"description":""}},"summary":"The MCP server icon (PNG): icon.png / icon-dark.png (256px), icon-64.png / icon-dark-64.png.","tags":["Integration API"]}},"/api/v1/integration/mcp/icon-64.png":{"get":{"operationId":"McpIconController_icon[2]","parameters":[],"responses":{"200":{"description":""}},"summary":"The MCP server icon (PNG): icon.png / icon-dark.png (256px), icon-64.png / icon-dark-64.png.","tags":["Integration API"]}},"/api/v1/integration/mcp/icon-dark-64.png":{"get":{"operationId":"McpIconController_icon[3]","parameters":[],"responses":{"200":{"description":""}},"summary":"The MCP server icon (PNG): icon.png / icon-dark.png (256px), icon-64.png / icon-dark-64.png.","tags":["Integration API"]}},"/api/v1/integration/workers":{"get":{"operationId":"IntegrationController_workers","parameters":[{"name":"updatedSince","required":false,"in":"query","description":"ISO 8601 — only records changed after this moment (incremental sync).","schema":{}},{"name":"cursor","required":false,"in":"query","description":"The `nextCursor` of the previous page.","schema":{}},{"name":"limit","required":false,"in":"query","description":"1–100, default 50.","schema":{}}],"responses":{"200":{"description":""}},"security":[{"api-key":[]}],"summary":"Workers: name, email, contract type, city.","tags":["Integration API"]}},"/api/v1/integration/shifts":{"get":{"operationId":"IntegrationController_shifts","parameters":[{"name":"status","required":false,"in":"query","description":"Filter on status; an unknown value is refused with the list of valid ones.","schema":{}},{"name":"updatedSince","required":false,"in":"query","description":"ISO 8601 — only records changed after this moment (incremental sync).","schema":{}},{"name":"cursor","required":false,"in":"query","description":"The `nextCursor` of the previous page.","schema":{}},{"name":"limit","required":false,"in":"query","description":"1–100, default 50.","schema":{}}],"responses":{"200":{"description":""}},"security":[{"api-key":[]}],"summary":"Shifts: client, location, times, rate, staffing.","tags":["Integration API"]}},"/api/v1/integration/postings":{"get":{"operationId":"IntegrationController_postings","parameters":[{"name":"status","required":false,"in":"query","description":"Filter on status; an unknown value is refused with the list of valid ones.","schema":{}},{"name":"updatedSince","required":false,"in":"query","description":"ISO 8601 — only records changed after this moment (incremental sync).","schema":{}},{"name":"cursor","required":false,"in":"query","description":"The `nextCursor` of the previous page.","schema":{}},{"name":"limit","required":false,"in":"query","description":"1–100, default 50.","schema":{}}],"responses":{"200":{"description":""}},"security":[{"api-key":[]}],"summary":"Job postings: title, role, client, status.","tags":["Integration API"]}},"/api/v1/integration/timesheets":{"get":{"operationId":"IntegrationController_timesheets","parameters":[{"name":"status","required":false,"in":"query","description":"Filter on status; an unknown value is refused with the list of valid ones.","schema":{}},{"name":"updatedSince","required":false,"in":"query","description":"ISO 8601 — only records changed after this moment (incremental sync).","schema":{}},{"name":"cursor","required":false,"in":"query","description":"The `nextCursor` of the previous page.","schema":{}},{"name":"limit","required":false,"in":"query","description":"1–100, default 50.","schema":{}}],"responses":{"200":{"description":""}},"security":[{"api-key":[]}],"summary":"Timesheets: worked times, net minutes, gross pay, approval. `status=approved` gives the hours ready for payroll.","tags":["Integration API"]}},"/api/v1/integration/invoices":{"get":{"operationId":"IntegrationController_invoices","parameters":[{"name":"status","required":false,"in":"query","description":"Filter on status; an unknown value is refused with the list of valid ones.","schema":{}},{"name":"updatedSince","required":false,"in":"query","description":"ISO 8601 — only records changed after this moment (incremental sync).","schema":{}},{"name":"cursor","required":false,"in":"query","description":"The `nextCursor` of the previous page.","schema":{}},{"name":"limit","required":false,"in":"query","description":"1–100, default 50.","schema":{}}],"responses":{"200":{"description":""}},"security":[{"api-key":[]}],"summary":"Invoices: number, amount, status, due and paid dates.","tags":["Integration API"]}},"/api/v1/integration/mcp":{"post":{"operationId":"IntegrationController_mcp","parameters":[],"responses":{"200":{"description":""}},"security":[{"api-key":[]}],"summary":"MCP server endpoint (JSON-RPC 2.0 over Streamable HTTP, stateless, plain JSON). Protocol 2025-11-25 (also 2025-06-18, 2025-03-26, 2024-11-05). Read tools mirror the list endpoints above plus detail, search and summary tools; write tools (post jobs, edit shifts, move/reject applications, approve/dispute timesheets) exist only when the agency switched them on, the credential has a write scope, and the member it acts for holds the portal permission. Writes act as that member and run the portal’s own checks.","tags":["Integration API"]},"get":{"operationId":"IntegrationController_mcpStream","parameters":[],"responses":{"200":{"description":""}},"security":[{"api-key":[]}],"summary":"Not offered: this MCP server has no server-to-client stream.","tags":["Integration API"]}},"/api/v1/integration/mcp/t/{tenantSlug}":{"post":{"operationId":"IntegrationController_mcpForTenant","parameters":[{"name":"tenantSlug","required":true,"in":"path","description":"The agency’s workspace slug.","schema":{"type":"string"}}],"responses":{"200":{"description":""}},"security":[{"api-key":[]}],"summary":"MCP server endpoint (JSON-RPC 2.0 over Streamable HTTP, stateless, plain JSON). Protocol 2025-11-25 (also 2025-06-18, 2025-03-26, 2024-11-05). Read tools mirror the list endpoints above plus detail, search and summary tools; write tools (post jobs, edit shifts, move/reject applications, approve/dispute timesheets) exist only when the agency switched them on, the credential has a write scope, and the member it acts for holds the portal permission. Writes act as that member and run the portal’s own checks. This is the agency’s own MCP URL; the credential must belong to it.","tags":["Integration API"]},"get":{"operationId":"IntegrationController_mcpTenantStream","parameters":[],"responses":{"200":{"description":""}},"security":[{"api-key":[]}],"summary":"Not offered: this MCP server has no server-to-client stream.","tags":["Integration API"]}}},"info":{"title":"Rational HRM — Integration API","description":"Read-only access to your agency’s data with an API key from Developer settings. Send it as `Authorization: Bearer rhrm_live_…`. Every list returns `{ items, nextCursor }`; pass `nextCursor` back as `cursor`, and `updatedSince` to fetch only what changed. The same data is available to AI clients over MCP at `POST /api/v1/integration/mcp`.","version":"1.0","contact":{}},"tags":[],"servers":[],"components":{"securitySchemes":{"api-key":{"scheme":"bearer","bearerFormat":"JWT","type":"http","description":"Your agency API key (rhrm_live_…)."}},"schemas":{"UpdateMcpSettingsDto":{"type":"object","properties":{"enabled":{"type":"boolean","description":"The agency’s MCP server is reachable."},"writeEnabled":{"type":"boolean","description":"Write tools exist on this agency’s server (still need a write scope on the key and the member’s permission)."},"disabledTools":{"description":"Tools switched off.","type":"array","items":{"type":"string"}}}}}}}