Organization- and project-level API keys
Set API keys at the organization and project level in Relevance AI
Organization and project-level API keys are an Enterprise feature. Enterprise subscriptions allow you to set API keys at both a project level and organization level.
How do I set organization-level API keys?
If you set an API key at the organization level, any projects in this organization will use this API key unless an API key is added at the project level.
- First, click ‘Settings’ in the sidebar of Relevance AI
- Then, click ‘Integrations control’
- Navigate to the integration you want to set an API key for and toggle it on
- Enter the API key on the pop-up that appears, and click ‘Save’
How do I set project-level API keys?
If you set an API key at the project level, this will override the organization level API key.
- First, navigate to your project in Relevance AI and click ‘Integrations & API Keys’
- Then, navigate to the integration you want to set an API key for
- Enter the API key on the pop-up that appears, and click ‘Save’
Custom API Keys
Custom API Keys allow you to securely store and use API credentials from external services in your agents and tools. Understanding how these keys are accessed and shared within your projects is important for maintaining security.
Who Can Access Custom API Keys
Custom API Keys are accessed in JavaScript code steps and Python code steps using the syntax {{secrets.key_name}}. These keys are available to all agent builders within a project.
Key points about access:
- Any builder with access to the project can use any Custom API Key in their code execution steps
- Custom API Key access is project-wide, regardless of who created the key
- All project members with builder permissions (Admin, Editor, or Member who can create assets) can reference Custom API Keys in their tools and agents
Learn more about managing project membership and permissions in the RBAC documentation.
Security Considerations
While Custom API Keys are automatically redacted with <redacted> when code steps attempt to print them out, members who can create Custom API Keys should exercise caution. Other builders in the project can use those keys to gain elevated access to downstream resources.
Important security points:
- Automatic redaction: Custom API Keys are protected from accidental exposure in logs and outputs
- Shared access risk: Any builder in the project can use Custom API Keys to access external systems with the permissions granted to those credentials
- Project membership matters: Carefully consider who has builder access to projects containing sensitive API credentials
Member self-service API keys
On enterprise plans, users with the Member role can create and manage their own personal Relevance API keys. This lets Members set up programmatic access independently, without needing an administrator to provision credentials.
Members can only create and manage API keys for their own account. They cannot manage API keys for other users, or set organization- or project-level integration keys.
The primary use case is connecting MCP clients to Relevance AI. A Member who needs to configure a client like Claude Desktop, Cursor, or VS Code can generate their own API key without waiting for admin intervention.
For more on generating Relevance API keys, see API integration.
Frequently asked questions (FAQs)
Can I access organization- and project-level API keys without upgrading to Enterprise?
No. This feature is available for Enterprise subscriptions only.
I've set an organization- and project-level API key. Which one takes precedence?
How does this apply to OAuth accounts?
What are the best practices for using Custom API Keys?
- Provide Custom API Keys that are limited in scope and permissions (e.g., read-only access, specific resource access)
- Create separate projects with only trusted team members when working with sensitive credentials
- Use OAuth credentials via User Level Authentication instead of Custom API Keys where possible

