Create Federation Rule
Changed onRequires an OAuth access token with the org:admin scope, from ant auth login --scope org:admin or a workload identity federation rule; Admin API keys are not accepted. See Manage WIF with the Admin API.
Create a federation rule owned by your organization.
The referenced issuer and the target service account must already exist in the same organization; invalid references are rejected with a 400 error. The workspace reference is validated. Membership is not checked at rule creation: token exchange resolves a single enabled workspace per call and is rejected unless the target service account is a member of that workspace (it is implicitly a member of the default workspace). Rules on well-known shared issuers (GitHub Actions, GitLab, Buildkite, Terraform Cloud, Google) must constrain tenant identity via an identity-bearing claim, a tenant-pinning subject prefix (such as repo:YOUR_ORG/...), or a CEL condition referencing one of those identity claims (e.g. claims.repository_owner). OAuth callers may only manage rules whose oauth_scope is workspace:developer or workspace:inference; other scopes require a Console session.
Request
- Base URLhttps://api.anthropic.com
- Authnone declared
Headers
The version of the Claude API you want to use.
Read more about versioning and our version history here.
Request body
Example request
{
"target": {
"service_account_id": "svac_01SDCCSbTxrXDpWc1phhtcfK"
}
}Response
Successful Response
Example response
{
"created_at": "2024-10-30T23:58:27.427722Z",
"id": "fdrl_01SDCCSbTxrXDpWc1phhtcfK",
"name": "prod-deploy-pipeline",
"target": {
"service_account_id": "svac_01SDCCSbTxrXDpWc1phhtcfK"
},
"updated_at": "2024-10-30T23:58:27.427722Z"
}Changes
- info
endpoint added
- info