{"openapi":"3.0.0","info":{"description":"Claude AI models","version":[{"name":"v1","value":"v1"}]},"servers":[{"description":"Claude AI models","url":"https://api.apirails.com/anthropic"}],"paths":{"/v1/messages":{"post":{"tags":["Message"],"parameters":[],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://platform.claude.com/docs/en/api/messages/create","api_endpoint":"https://api.anthropic.com/v1/messages"},"summary":"Create a Message","description":"Create a chat Message","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"max_tokens":{"type":"number","description":"The maximum number of tokens to generate before stopping","required":true},"messages":{"type":"array","description":"Input messages with alternating user and assistant roles","required":true,"items":{"type":"object","properties":{"role":{"type":"string","description":"Role of the message sender","required":true,"enum":["user","assistant"]},"content":{"type":"string","description":"Content of the message. Can be a plain string or JSON array of content blocks","required":true}}}},"metadata":{"type":"object","description":"An object describing metadata about the request","properties":{"user_id":{"type":"string","description":"An external identifier for the user"}}},"model":{"type":"string","description":"The model that will complete your prompt","required":true},"stop_sequences":{"type":"array","description":"Custom text sequences that will cause the model to stop generating","items":{"type":"string"}},"stream":{"type":"boolean","description":"Whether to incrementally stream the response using server-sent events","enum":[true,false]},"system":{"type":"string","description":"System prompt"},"temperature":{"type":"number","description":"Amount of randomness injected into the response"},"tools":{"type":"array","description":"Definitions of tools that the model may use","items":{"type":"object","properties":{"name":{"type":"string","description":"Name of the tool","required":true},"description":{"type":"string","description":"Description of what the tool does","required":true},"type":{"type":"string","description":"Type of the tool","enum":["custom","computer_20250124","text_editor_20250124","bash_20250124"]},"input_schema":{"type":"object","description":"JSON schema object defining the tool's input parameters"},"cache_control":{"type":"object","description":"Cache control for the tool definition"},"strict":{"type":"boolean","description":"Whether to enforce strict schema adherence"}}}},"top_k":{"type":"number","description":"Only sample from the top K options for each subsequent token"},"top_p":{"type":"number","description":"Use nucleus sampling"},"thinking":{"type":"object","description":"Configuration for extended thinking. Enables the model to use extended thinking during response generation","properties":{"type":{"type":"string","description":"Type of thinking configuration","required":true,"enum":["enabled","disabled","adaptive"]},"budget_tokens":{"type":"number","description":"Maximum number of tokens for thinking"},"display":{"type":"string","description":"How thinking output is displayed in the response","enum":["summarized","hidden"]}}},"tool_choice":{"type":"object","description":"Controls which tool the model can use","properties":{"type":{"type":"string","description":"Type of tool choice","required":true,"enum":["auto","any","tool"]},"name":{"type":"string","description":"Name of the specific tool to use (required when type is tool)"},"disable_parallel_tool_use":{"type":"boolean","description":"Whether to prevent the model from using multiple tools in the same turn"}}}}},"example":{"max_tokens":1000,"messages":[{"content":"Hello, world","role":"user"}],"metadata":{},"model":"claude-sonnet-4-6","stop_sequences":[],"stream":"","system":"","temperature":"","tools":[],"top_k":"","top_p":"","thinking":{},"tool_choice":{}}}}}}},"/v1/messages/count-tokens":{"post":{"tags":["Message"],"parameters":[],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://platform.claude.com/docs/en/api/messages/count_tokens","api_endpoint":"https://api.anthropic.com/v1/messages/count_tokens"},"summary":"Count Message tokens","description":"Count the number of tokens in a Message","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"messages":{"type":"array","description":"Input messages with alternating user and assistant roles","required":true,"items":{"type":"object","properties":{"role":{"type":"string","description":"Role of the message sender","required":true,"enum":["user","assistant"]},"content":{"type":"string","description":"Content of the message. Can be a plain string or JSON array of content blocks","required":true}}}},"model":{"type":"string","description":"The model that will complete your prompt","required":true},"system":{"type":"string","description":"System prompt"},"tool_choice":{"type":"object","description":"The model can use a specific tool, any available tool, or decide by itself","properties":{"type":{"type":"string","description":"Type of tool choice","required":true,"enum":["auto","any","tool"]},"name":{"type":"string","description":"Name of the specific tool to use (required when type is tool)"},"disable_parallel_tool_use":{"type":"boolean","description":"Whether to prevent the model from using multiple tools in the same turn"}}},"tools":{"type":"array","description":"Definitions of tools that the model may use","items":{"type":"object","properties":{"name":{"type":"string","description":"Name of the tool","required":true},"description":{"type":"string","description":"Description of what the tool does","required":true},"type":{"type":"string","description":"Type of the tool","enum":["custom","computer_20250124","text_editor_20250124","bash_20250124"]},"input_schema":{"type":"object","description":"JSON schema object defining the tool's input parameters"},"cache_control":{"type":"object","description":"Cache control for the tool definition"},"strict":{"type":"boolean","description":"Whether to enforce strict schema adherence"}}}}}},"example":{"messages":[{"content":"Hello, world","role":"user"}],"model":"claude-sonnet-4-6","system":"","tool_choice":{},"tools":[]}}}}}},"/v1/models":{"get":{"tags":["Models"],"parameters":[],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://platform.claude.com/docs/en/api/models/list","api_endpoint":"https://api.anthropic.com/v1/models"},"summary":"List Models","description":"List all available models","security":[{"bearerAuth":[]}]}},"/v1/models/{model_id}":{"get":{"tags":["Models"],"parameters":[{"name":"model_id","in":"path","description":"The model ID","required":true,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://platform.claude.com/docs/en/api/models/retrieve","api_endpoint":"https://api.anthropic.com/v1/models/{model_id}"},"summary":"Get a Model","description":"Get a specific model by ID","security":[{"bearerAuth":[]}]}},"/v1/messages/batches":{"post":{"tags":["Message Batches"],"parameters":[],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://platform.claude.com/docs/en/api/messages/batches/create","api_endpoint":"https://api.anthropic.com/v1/messages/batches"},"summary":"Create a Message Batch","description":"Send a batch of Message creation requests. Processes multiple Messages API requests at once.","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"requests":{"type":"array","description":"List of requests for prompt completion. Each is an individual request to create a Message","required":true,"items":{"type":"object","properties":{"custom_id":{"type":"string","description":"Developer-provided ID for each request. Must be unique within the batch","required":true},"params":{"type":"object","description":"Messages API creation parameters for the individual request","required":true}}}}}},"example":{"requests":[]}}}}},"get":{"tags":["Message Batches"],"parameters":[{"name":"after_id","in":"query","description":"ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately after this object","schema":{"type":"string","example":""}},{"name":"before_id","in":"query","description":"ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately before this object","schema":{"type":"string","example":""}},{"name":"limit","in":"query","description":"Number of items to return per page","schema":{"type":"number","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://platform.claude.com/docs/en/api/messages/batches/list","api_endpoint":"https://api.anthropic.com/v1/messages/batches"},"summary":"List Message Batches","description":"List all message batches","security":[{"bearerAuth":[]}]}},"/v1/messages/batches/{message_batch_id}":{"get":{"tags":["Message Batches"],"parameters":[{"name":"message_batch_id","in":"path","description":"ID of the Message Batch","required":true,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://platform.claude.com/docs/en/api/messages/batches/retrieve","api_endpoint":"https://api.anthropic.com/v1/messages/batches/{message_batch_id}"},"summary":"Retrieve a Message Batch","description":"Retrieve a specific batch by ID","security":[{"bearerAuth":[]}]},"delete":{"tags":["Message Batches"],"parameters":[{"name":"message_batch_id","in":"path","description":"ID of the Message Batch","required":true,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://platform.claude.com/docs/en/api/messages/batches/delete","api_endpoint":"https://api.anthropic.com/v1/messages/batches/{message_batch_id}"},"summary":"Delete a Message Batch","description":"Delete a message batch","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{}},"example":{}}}}}},"/v1/messages/batches/{message_batch_id}/results":{"get":{"tags":["Message Batches"],"parameters":[{"name":"message_batch_id","in":"path","description":"ID of the Message Batch","required":true,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://platform.claude.com/docs/en/api/messages/batches/retrieve-results","api_endpoint":"https://api.anthropic.com/v1/messages/batches/{message_batch_id}/results"},"summary":"Retrieve Message Batch Results","description":"Retrieve the results of a completed batch","security":[{"bearerAuth":[]}]}},"/v1/messages/batches/{message_batch_id}/cancel":{"post":{"tags":["Message Batches"],"parameters":[{"name":"message_batch_id","in":"path","description":"ID of the Message Batch","required":true,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://platform.claude.com/docs/en/api/messages/batches/cancel","api_endpoint":"https://api.anthropic.com/v1/messages/batches/{message_batch_id}/cancel"},"summary":"Cancel a Message Batch","description":"Cancel a running batch","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{}},"example":{}}}}}},"/v1/files":{"post":{"tags":["Files"],"parameters":[],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://platform.claude.com/docs/en/api/beta/files/create","api_endpoint":"https://api.anthropic.com/v1/files"},"summary":"Create a File","description":"Upload a file to use with Claude","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":false,"content":{"multipart/form-data":{"schema":{"type":"object","required":[],"properties":{"file":{"type":"string","format":"binary","description":"The file to upload","required":true},"purpose":{"type":"string","description":"The purpose of the file"}}},"example":{"file":"(binary)","purpose":""}}}}},"get":{"tags":["Files"],"parameters":[{"name":"after_id","in":"query","description":"ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately after this object","schema":{"type":"string","example":""}},{"name":"before_id","in":"query","description":"ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately before this object","schema":{"type":"string","example":""}},{"name":"limit","in":"query","description":"Number of items to return per page","schema":{"type":"number","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://platform.claude.com/docs/en/api/beta/files/list","api_endpoint":"https://api.anthropic.com/v1/files"},"summary":"List Files","description":"List all files","security":[{"bearerAuth":[]}]}},"/v1/files/{file_id}":{"get":{"tags":["Files"],"parameters":[{"name":"file_id","in":"path","description":"The ID of the file","required":true,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://platform.claude.com/docs/en/api/beta/files/get","api_endpoint":"https://api.anthropic.com/v1/files/{file_id}"},"summary":"Get File Metadata","description":"Get metadata for a specific file","security":[{"bearerAuth":[]}]},"delete":{"tags":["Files"],"parameters":[{"name":"file_id","in":"path","description":"The ID of the file","required":true,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://platform.claude.com/docs/en/api/beta/files/delete","api_endpoint":"https://api.anthropic.com/v1/files/{file_id}"},"summary":"Delete a File","description":"Delete a file","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{}},"example":{}}}}}},"/v1/files/{file_id}/download":{"get":{"tags":["Files"],"parameters":[{"name":"file_id","in":"path","description":"The ID of the file","required":true,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://platform.claude.com/docs/en/api/beta/files/download","api_endpoint":"https://api.anthropic.com/v1/files/{file_id}/download"},"summary":"Download a File","description":"Download a file","security":[{"bearerAuth":[]}]}},"/v1/organizations/me":{"get":{"tags":["Admin API"],"parameters":[],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://platform.claude.com/docs/en/api/admin/organizations/me","api_endpoint":"https://api.anthropic.com/v1/organizations/me"},"summary":"Get Current Organization","description":"Get the current organization","security":[{"bearerAuth":[]}]}},"/v1/organizations/api_keys":{"get":{"tags":["Admin API"],"parameters":[{"name":"after_id","in":"query","description":"ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately after this object","schema":{"type":"string","example":""}},{"name":"before_id","in":"query","description":"ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately before this object","schema":{"type":"string","example":""}},{"name":"created_by_user_id","in":"query","description":"Filter by the ID of the User who created the object","schema":{"type":"string","example":""}},{"name":"limit","in":"query","description":"Number of items to return per page","schema":{"type":"number","example":""}},{"name":"status","in":"query","description":"Filter by API key status","schema":{"type":"string","example":""}},{"name":"workspace_id","in":"query","description":"Filter by Workspace ID","schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://platform.claude.com/docs/en/api/admin/api_keys/list","api_endpoint":"https://api.anthropic.com/v1/organizations/api_keys"},"summary":"List Api Keys","description":"List Api Keys","security":[{"bearerAuth":[]}]},"post":{"tags":["Admin API"],"parameters":[],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://platform.claude.com/docs/en/api/admin/api_keys/create","api_endpoint":"https://api.anthropic.com/v1/organizations/api_keys"},"summary":"Create Api Key","description":"Create a new API key","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"name":{"type":"string","description":"Name for the API key","required":true},"workspace_id":{"type":"string","description":"ID of the workspace to associate the API key with","required":true}}},"example":{"name":"","workspace_id":""}}}}}},"/v1/organizations/api_keys/{api_key_id}":{"get":{"tags":["Admin API"],"parameters":[{"name":"api_key_id","in":"path","description":"ID of the API key","required":true,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://platform.claude.com/docs/en/api/admin/api_keys/get","api_endpoint":"https://api.anthropic.com/v1/organizations/api_keys/{api_key_id}"},"summary":"Get Api Key","description":"Get a specific API key by ID","security":[{"bearerAuth":[]}]},"patch":{"tags":["Admin API"],"parameters":[{"name":"api_key_id","in":"path","description":"ID of the API key","required":true,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://platform.claude.com/docs/en/api/admin/api_keys/update","api_endpoint":"https://api.anthropic.com/v1/organizations/api_keys/{api_key_id}"},"summary":"Update Api Key","description":"Update an API key","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"name":{"type":"string","description":"New name for the API key"},"status":{"type":"string","description":"Status of the API key","enum":["active","inactive"]}}},"example":{"name":"","status":""}}}}},"delete":{"tags":["Admin API"],"parameters":[{"name":"api_key_id","in":"path","description":"ID of the API key","required":true,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://platform.claude.com/docs/en/api/admin/api_keys/delete","api_endpoint":"https://api.anthropic.com/v1/organizations/api_keys/{api_key_id}"},"summary":"Delete Api Key","description":"Delete an API key","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{}},"example":{}}}}}},"/v1/organizations/workspaces":{"get":{"tags":["Admin API"],"parameters":[{"name":"after_id","in":"query","description":"ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately after this object","schema":{"type":"string","example":""}},{"name":"before_id","in":"query","description":"ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately before this object","schema":{"type":"string","example":""}},{"name":"limit","in":"query","description":"Number of items to return per page","schema":{"type":"number","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://platform.claude.com/docs/en/api/admin/workspaces/list","api_endpoint":"https://api.anthropic.com/v1/organizations/workspaces"},"summary":"List Workspaces","description":"List all workspaces","security":[{"bearerAuth":[]}]},"post":{"tags":["Admin API"],"parameters":[],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://platform.claude.com/docs/en/api/admin/workspaces/create","api_endpoint":"https://api.anthropic.com/v1/organizations/workspaces"},"summary":"Create Workspace","description":"Create a new workspace","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"name":{"type":"string","description":"Name for the workspace","required":true}}},"example":{"name":""}}}}}},"/v1/organizations/workspaces/{workspace_id}":{"get":{"tags":["Admin API"],"parameters":[{"name":"workspace_id","in":"path","description":"ID of the Workspace","required":true,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://platform.claude.com/docs/en/api/admin/workspaces/get","api_endpoint":"https://api.anthropic.com/v1/organizations/workspaces/{workspace_id}"},"summary":"Get Workspace","description":"Get a specific workspace by ID","security":[{"bearerAuth":[]}]},"patch":{"tags":["Admin API"],"parameters":[{"name":"workspace_id","in":"path","description":"ID of the Workspace","required":true,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://platform.claude.com/docs/en/api/admin/workspaces/update","api_endpoint":"https://api.anthropic.com/v1/organizations/workspaces/{workspace_id}"},"summary":"Update Workspace","description":"Update a workspace","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"name":{"type":"string","description":"New name for the workspace"}}},"example":{"name":""}}}}},"delete":{"tags":["Admin API"],"parameters":[{"name":"workspace_id","in":"path","description":"ID of the Workspace","required":true,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://platform.claude.com/docs/en/api/admin/workspaces/delete","api_endpoint":"https://api.anthropic.com/v1/organizations/workspaces/{workspace_id}"},"summary":"Delete Workspace","description":"Delete a workspace","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{}},"example":{}}}}}},"/v1/organizations/workspaces/{workspace_id}/members":{"get":{"tags":["Admin API"],"parameters":[{"name":"workspace_id","in":"path","description":"ID of the Workspace","required":true,"schema":{"type":"string","example":""}},{"name":"after_id","in":"query","description":"ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately after this object","schema":{"type":"string","example":""}},{"name":"before_id","in":"query","description":"ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately before this object","schema":{"type":"string","example":""}},{"name":"limit","in":"query","description":"Number of items to return per page","schema":{"type":"number","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://platform.claude.com/docs/en/api/admin/workspaces/members/list","api_endpoint":"https://api.anthropic.com/v1/organizations/workspaces/{workspace_id}/members"},"summary":"List Workspace Members","description":"List all members of a workspace","security":[{"bearerAuth":[]}]},"post":{"tags":["Admin API"],"parameters":[{"name":"workspace_id","in":"path","description":"ID of the Workspace","required":true,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://platform.claude.com/docs/en/api/admin/workspaces/members/create","api_endpoint":"https://api.anthropic.com/v1/organizations/workspaces/{workspace_id}/members"},"summary":"Create Workspace Member","description":"Add a member to a workspace","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"role":{"type":"string","description":"Role for the user in the workspace","enum":["admin","member"]},"user_id":{"type":"string","description":"ID of the User to add to the workspace","required":true}}},"example":{"role":"","user_id":""}}}}}},"/v1/organizations/workspaces/{workspace_id}/members/{user_id}":{"get":{"tags":["Admin API"],"parameters":[{"name":"user_id","in":"path","description":"ID of the User","required":true,"schema":{"type":"string","example":""}},{"name":"workspace_id","in":"path","description":"ID of the Workspace","required":true,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://platform.claude.com/docs/en/api/admin/workspaces/members/get","api_endpoint":"https://api.anthropic.com/v1/organizations/workspaces/{workspace_id}/members/{user_id}"},"summary":"Get Workspace Member","description":"Get a specific workspace member","security":[{"bearerAuth":[]}]},"patch":{"tags":["Admin API"],"parameters":[{"name":"user_id","in":"path","description":"ID of the User","required":true,"schema":{"type":"string","example":""}},{"name":"workspace_id","in":"path","description":"ID of the Workspace","required":true,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://platform.claude.com/docs/en/api/admin/workspaces/members/update","api_endpoint":"https://api.anthropic.com/v1/organizations/workspaces/{workspace_id}/members/{user_id}"},"summary":"Update Workspace Member","description":"Update a workspace member","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"role":{"type":"string","description":"New role for the user in the workspace","enum":["admin","member"]}}},"example":{"role":""}}}}},"delete":{"tags":["Admin API"],"parameters":[{"name":"user_id","in":"path","description":"ID of the User","required":true,"schema":{"type":"string","example":""}},{"name":"workspace_id","in":"path","description":"ID of the Workspace","required":true,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://platform.claude.com/docs/en/api/admin/workspaces/members/delete","api_endpoint":"https://api.anthropic.com/v1/organizations/workspaces/{workspace_id}/members/{user_id}"},"summary":"Delete Workspace Member","description":"Delete Workspace Member","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{}},"example":{}}}}}},"/v1/organizations/users":{"get":{"tags":["Admin API"],"parameters":[{"name":"after_id","in":"query","description":"ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately after this object","schema":{"type":"string","example":""}},{"name":"before_id","in":"query","description":"ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately before this object","schema":{"type":"string","example":""}},{"name":"email","in":"query","description":"Filter by user email","schema":{"type":"string","example":""}},{"name":"limit","in":"query","description":"Number of items to return per page","schema":{"type":"number","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://platform.claude.com/docs/en/api/admin/users/list","api_endpoint":"https://api.anthropic.com/v1/organizations/users"},"summary":"List Users","description":"List all users in the organization","security":[{"bearerAuth":[]}]}},"/v1/organizations/users/{user_id}":{"post":{"tags":["Admin API"],"parameters":[{"name":"user_id","in":"path","description":"ID of the User","required":true,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://platform.claude.com/docs/en/api/admin/users/update","api_endpoint":"https://api.anthropic.com/v1/organizations/users/{user_id}"},"summary":"Update User","description":"Update a user's role in the organization","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"role":{"type":"string","description":"New role for the User. Cannot be admin","enum":["user","developer","billing","claude_code_user","managed"]}}},"example":{"role":""}}}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}}},"security":[{"bearerAuth":[]}]}