Sample - OpenAI API
GET/organization/projects/{project_id}/hosted_tool_permissions

Retrieve 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.

1 parameter
project_idstringrequired
The unique identifier of the project whose hosted tool permissions to retrieve.

1 status code
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.