Langfuse launches AI Gateway Learn more
FaqCan I create read-only or scoped API keys?

Can I create read-only or scoped API keys?

Yes. When you create a project API key in Project Settings → API Keys → Create new API keys, choose its Permissions:

PermissionsWhat the key can do
Full access (default)Read and write everything in the project
ViewerRead-only access to the project's data
IngestionCreate traces, scores, and media; cannot read data
Scores ingestionSubmit scores only

You can also set an expiration: no expiration (default), 30, 60, or 90 days, 1 year, or a custom date. Requests with an expired key are rejected.

A key's permissions cannot be changed after it is created. To change them, create a new key and delete the old one. Keys created before permissions were available keep their existing access.

Creating project API keys requires the Owner or Admin role on the project. See API key permissions and Where are my API keys?.


Was this page helpful?

Last updated on