GET
/organization/projects/{project_id}/hosted_tool_permissionsRetrieve project hosted tool permissions
Retrieves the hosted tool permissions configured for a project. Supply project_id to retrieve the enabled state for file search, web search, image generation, MCP, and code interpreter.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
project_idstringrequired
The unique identifier of the project whose hosted tool permissions to retrieve.
200Returns the project's hosted tool permissions, including an `enabled` boolean for file search, web search, image generation, MCP, and code interpreter.
file_searchobjectrequired
Permission state for a single hosted tool on a project.
web_searchobjectrequired
Permission state for a single hosted tool on a project.
image_generationobjectrequired
Permission state for a single hosted tool on a project.
mcpobjectrequired
Permission state for a single hosted tool on a project.
code_interpreterobjectrequired
Permission state for a single hosted tool on a project.
Error handling
project_id must identify the project whose hosted tool permissions you want to retrieve. The response includes an enabled boolean for each hosted tool permission.