Your API is secured behind an API gateway which requires an API Key for every
request.
You can use the keys below in the Supabase client libraries.
Retrieving API keys
You don't have permission to view API keys. These keys restricted to users with higher access levels.
{isProjectSettingsError ? 'Failed to retrieve API keys' : 'Failed to update JWT secret'}
{isProjectSettingsLoading || isApiKeysEmpty ? 'Retrieving API keys' : 'JWT secret is being updated'}
{x}
))}
{x.tags === 'service_role' && (
<>
secret
>
)}
{x.tags === 'anon' && public}
>
}
copy={canReadAPIKeys && isNotUpdatingJwtSecret}
reveal={x.tags !== 'anon' && canReadAPIKeys && isNotUpdatingJwtSecret}
value={
!canReadAPIKeys
? 'You need additional permissions to view API keys'
: jwtSecretUpdateStatus === JwtSecretUpdateStatus.Failed
? 'JWT secret update failed, new API key may have issues'
: jwtSecretUpdateStatus === JwtSecretUpdateStatus.Updating
? 'Updating JWT secret...'
: x?.api_key ?? 'You need additional permissions to view API keys'
}
onChange={() => {}}
descriptionText={
x.tags === 'service_role'
? 'This key has the ability to bypass Row Level Security. Never share it publicly. If leaked, generate a new JWT secret immediately. ' +
(showLegacyText ? 'Prefer using Publishable API keys instead.' : '')
: 'This key is safe to use in a browser if you have enabled Row Level Security for your tables and configured policies. ' +
(showLegacyText ? 'Prefer using Secret API keys instead.' : '')
}
/>