Skip to content

Commit 5401182

Browse files
IlyaasKclaude
andcommitted
Correct X-Kernel-Project-Id header: takes a project ID, not a name
The header is resolved server-side by project ID only (the middleware looks up entproject.IDEQ); passing a name returns 404 project_not_found. Name resolution is a client-side convenience — the CLI's --project flag and the SDKs resolve names to IDs before sending the header. docs#409 incorrectly said the header accepts "a project ID or name". Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent b3e776f commit 5401182

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

info/projects.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ A project must also be empty before it can be deleted — archive or remove its
2525

2626
## Scoping Requests to a Project
2727

28-
Pass the `X-Kernel-Project-Id` header — a project ID or name — on any API request to scope it to a specific project. Without the header (and without a project-scoped API key), requests act on your organization's **default project**: reads return the default project's resources, and writes create resources in it.
28+
Pass the `X-Kernel-Project-Id` header — a project ID — on any API request to scope it to a specific project. The header takes the project's ID, not its name; the CLI's `--project` flag and the SDKs resolve names to IDs for you. Without the header (and without a project-scoped API key), requests act on your organization's **default project**: reads return the default project's resources, and writes create resources in it.
2929

3030
```bash
3131
curl https://api.onkernel.com/browsers \

0 commit comments

Comments
 (0)