An issuer trust records an issuer whose ID-JAGs an organization accepts. When the trust is enabled, ID-JAGs issued by the trusted issuer can be exchanged for access tokens scoped to the organization. The only type today is claude, which lets Claude act on behalf of the organization’s users.
An organization’s IT admin sets up the trust through the Admin Portal using the agent_issuer_trust intent. To check whether setup is complete, list the organization’s issuer trusts and look for one that is enabled.
issuer_trust
Get the issuers an organization trusts.
| curl "https://api.workos.com/organizations/org_01EHZNVPK3SFK441A1RGBFSHRT/issuer_trusts" \ | |
| --header "Authorization: Bearer sk_example_123456789" |
| require "workos" | |
| WorkOS.configure do |config| | |
| config.api_key = "sk_example_123456789" | |
| end | |
| WorkOS.client.organizations_issuer_trusts.list_organization_issuer_trusts(organization_id: "org_01EHZNVPK3SFK441A1RGBFSHRT") |
| from workos import WorkOSClient | |
| client = WorkOSClient(api_key="sk_example_123456789", client_id="client_123456789") | |
| client.organizations_issuer_trusts.list_organization_issuer_trusts( | |
| organization_id="org_01EHZNVPK3SFK441A1RGBFSHRT" | |
| ) |
| package main | |
| import ( | |
| "context" | |
| "github.com/workos/workos-go/v10" | |
| ) | |
| func main() { | |
| client := workos.NewClient("sk_example_123456789") | |
| _, err := client.OrganizationsIssuerTrusts().List(context.Background(), "org_01EHZNVPK3SFK441A1RGBFSHRT") | |
| if err != nil { | |
| panic(err) | |
| } | |
| } |
| <?php | |
| use WorkOS\WorkOS; | |
| $workos = new WorkOS( | |
| apiKey: "sk_example_123456789", | |
| clientId: "client_123456789", | |
| ); | |
| $workos | |
| ->organizationsIssuerTrusts() | |
| ->listOrganizationIssuerTrusts( | |
| organizationId: "org_01EHZNVPK3SFK441A1RGBFSHRT", | |
| ); |
| import com.workos.WorkOS; | |
| WorkOS workos = new WorkOS("sk_example_123456789"); | |
| workos.getOrganizationsIssuerTrusts().list("org_01EHZNVPK3SFK441A1RGBFSHRT"); |
| using WorkOS; | |
| var client = new WorkOSClient(new WorkOSOptions { | |
| ApiKey = "sk_example_123456789", | |
| ClientId = "client_123456789", | |
| }); | |
| await client.OrganizationsIssuerTrusts.ListAsync("org_01EHZNVPK3SFK441A1RGBFSHRT"); |
| use workos::Client; | |
| #[tokio::main] | |
| async fn main() -> Result<(), workos::Error> { | |
| let client = Client::new("sk_example_123456789"); | |
| let _result = client | |
| .organizations_issuer_trusts() | |
| .list_organization_issuer_trusts("org_01EHZNVPK3SFK441A1RGBFSHRT") | |
| .await?; | |
| Ok(()) | |
| } |
| { | |
| "object": "list", | |
| "data": [ | |
| { | |
| "object": "issuer_trust", | |
| "id": "issuer_trust_01JZ8X4N2R7Q9M3K5T6V8W0Y1A", | |
| "organization_id": "org_01EHZNVPK3SFK441A1RGBFSHRT", | |
| "type": "claude", | |
| "issuer": "https://claude.ai/v1/ema/t/01JZ8X4N2R7Q9M3K5T6V8W0Y1A", | |
| "enabled": true, | |
| "created_at": "2026-01-15T12:00:00.000Z", | |
| "updated_at": "2026-01-15T12:00:00.000Z" | |
| } | |
| ], | |
| "list_metadata": { | |
| "before": "issuer_trust_01HXYZ123456789ABCDEFGHIJ", | |
| "after": "issuer_trust_01HXYZ987654321KJIHGFEDCBA" | |
| } | |
| } |
GET/organizations /:organization_id /issuer_trusts
Parameters
Returns object
Get an issuer trust by its ID.
| curl "https://api.workos.com/organizations/org_01EHZNVPK3SFK441A1RGBFSHRT/issuer_trusts/issuer_trust_01JZ8X4N2R7Q9M3K5T6V8W0Y1A" \ | |
| --header "Authorization: Bearer sk_example_123456789" |
| require "workos" | |
| WorkOS.configure do |config| | |
| config.api_key = "sk_example_123456789" | |
| end | |
| WorkOS.client.organizations_issuer_trusts.get_organization_issuer_trust( | |
| organization_id: "org_01EHZNVPK3SFK441A1RGBFSHRT", | |
| id: "issuer_trust_01JZ8X4N2R7Q9M3K5T6V8W0Y1A" | |
| ) |
| from workos import WorkOSClient | |
| client = WorkOSClient(api_key="sk_example_123456789", client_id="client_123456789") | |
| client.organizations_issuer_trusts.get_organization_issuer_trust( | |
| organization_id="org_01EHZNVPK3SFK441A1RGBFSHRT", | |
| id="issuer_trust_01JZ8X4N2R7Q9M3K5T6V8W0Y1A", | |
| ) |
| package main | |
| import ( | |
| "context" | |
| "github.com/workos/workos-go/v10" | |
| ) | |
| func main() { | |
| client := workos.NewClient("sk_example_123456789") | |
| _, err := client.OrganizationsIssuerTrusts().Get(context.Background(), "org_01EHZNVPK3SFK441A1RGBFSHRT", "issuer_trust_01JZ8X4N2R7Q9M3K5T6V8W0Y1A") | |
| if err != nil { | |
| panic(err) | |
| } | |
| } |
| <?php | |
| use WorkOS\WorkOS; | |
| $workos = new WorkOS( | |
| apiKey: "sk_example_123456789", | |
| clientId: "client_123456789", | |
| ); | |
| $workos | |
| ->organizationsIssuerTrusts() | |
| ->getOrganizationIssuerTrust( | |
| organizationId: "org_01EHZNVPK3SFK441A1RGBFSHRT", | |
| id: "issuer_trust_01JZ8X4N2R7Q9M3K5T6V8W0Y1A", | |
| ); |
| import com.workos.WorkOS; | |
| WorkOS workos = new WorkOS("sk_example_123456789"); | |
| workos.getOrganizationsIssuerTrusts().get( | |
| "org_01EHZNVPK3SFK441A1RGBFSHRT", "issuer_trust_01JZ8X4N2R7Q9M3K5T6V8W0Y1A"); |
| using WorkOS; | |
| var client = new WorkOSClient(new WorkOSOptions { | |
| ApiKey = "sk_example_123456789", | |
| ClientId = "client_123456789", | |
| }); | |
| await client.OrganizationsIssuerTrusts.GetAsync("org_01EHZNVPK3SFK441A1RGBFSHRT", | |
| "issuer_trust_01JZ8X4N2R7Q9M3K5T6V8W0Y1A"); |
| use workos::Client; | |
| #[tokio::main] | |
| async fn main() -> Result<(), workos::Error> { | |
| let client = Client::new("sk_example_123456789"); | |
| let _result = client | |
| .organizations_issuer_trusts() | |
| .get_organization_issuer_trust( | |
| "org_01EHZNVPK3SFK441A1RGBFSHRT", | |
| "issuer_trust_01JZ8X4N2R7Q9M3K5T6V8W0Y1A", | |
| ) | |
| .await?; | |
| Ok(()) | |
| } |
| { | |
| "object": "issuer_trust", | |
| "id": "issuer_trust_01JZ8X4N2R7Q9M3K5T6V8W0Y1A", | |
| "organization_id": "org_01EHZNVPK3SFK441A1RGBFSHRT", | |
| "type": "claude", | |
| "issuer": "https://claude.ai/v1/ema/t/01JZ8X4N2R7Q9M3K5T6V8W0Y1A", | |
| "enabled": true, | |
| "created_at": "2026-01-15T12:00:00.000Z", | |
| "updated_at": "2026-01-15T12:00:00.000Z" | |
| } |
GET/organizations /:organization_id /issuer_trusts /:id
Parameters
Returns
Trust an issuer for an organization. WorkOS checks the issuer’s OpenID configuration and that the organization has a verified domain. The trust is created disabled; enable it to start accepting ID-JAGs from the issuer.
| curl --request POST \ | |
| --url "https://api.workos.com/organizations/org_01EHZNVPK3SFK441A1RGBFSHRT/issuer_trusts" \ | |
| --header "Authorization: Bearer sk_example_123456789" \ | |
| --header "Content-Type: application/json" \ | |
| -d @- <<'BODY' | |
| { | |
| "type": "claude", | |
| "issuer": "https://claude.ai/v1/ema/t/01JZ8X4N2R7Q9M3K5T6V8W0Y1A" | |
| } | |
| BODY |
| require "workos" | |
| WorkOS.configure do |config| | |
| config.api_key = "sk_example_123456789" | |
| end | |
| WorkOS.client.organizations_issuer_trusts.create_organization_issuer_trust( | |
| organization_id: "org_01EHZNVPK3SFK441A1RGBFSHRT", | |
| type: "claude", | |
| issuer: "https://claude.ai/v1/ema/t/01JZ8X4N2R7Q9M3K5T6V8W0Y1A" | |
| ) |
| from workos import WorkOSClient | |
| client = WorkOSClient(api_key="sk_example_123456789", client_id="client_123456789") | |
| client.organizations_issuer_trusts.create_organization_issuer_trust( | |
| organization_id="org_01EHZNVPK3SFK441A1RGBFSHRT", | |
| type="claude", | |
| issuer="https://claude.ai/v1/ema/t/01JZ8X4N2R7Q9M3K5T6V8W0Y1A", | |
| ) |
| package main | |
| import ( | |
| "context" | |
| "github.com/workos/workos-go/v10" | |
| ) | |
| func main() { | |
| client := workos.NewClient("sk_example_123456789") | |
| _, err := client.OrganizationsIssuerTrusts().Create(context.Background(), "org_01EHZNVPK3SFK441A1RGBFSHRT", &workos.OrganizationsIssuerTrustsCreateParams{ | |
| Type: "claude", | |
| Issuer: "https://claude.ai/v1/ema/t/01JZ8X4N2R7Q9M3K5T6V8W0Y1A", | |
| }) | |
| if err != nil { | |
| panic(err) | |
| } | |
| } |
| <?php | |
| use WorkOS\WorkOS; | |
| $workos = new WorkOS( | |
| apiKey: "sk_example_123456789", | |
| clientId: "client_123456789", | |
| ); | |
| $workos | |
| ->organizationsIssuerTrusts() | |
| ->createOrganizationIssuerTrust( | |
| organizationId: "org_01EHZNVPK3SFK441A1RGBFSHRT", | |
| type: "claude", | |
| issuer: "https://claude.ai/v1/ema/t/01JZ8X4N2R7Q9M3K5T6V8W0Y1A", | |
| ); |
| import com.workos.WorkOS; | |
| WorkOS workos = new WorkOS("sk_example_123456789"); | |
| workos.getOrganizationsIssuerTrusts().create("org_01EHZNVPK3SFK441A1RGBFSHRT", | |
| "claude", | |
| "https://claude.ai/v1/ema/t/01JZ8X4N2R7Q9M3K5T6V8W0Y1A"); |
| using WorkOS; | |
| var client = new WorkOSClient(new WorkOSOptions { | |
| ApiKey = "sk_example_123456789", | |
| ClientId = "client_123456789", | |
| }); | |
| await client.OrganizationsIssuerTrusts.CreateAsync("org_01EHZNVPK3SFK441A1RGBFSHRT", | |
| new OrganizationsIssuerTrustsCreateOptions { | |
| Type = "claude", | |
| Issuer = "https://claude.ai/v1/ema/t/01JZ8X4N2R7Q9M3K5T6V8W0Y1A", | |
| }); |
| use workos::Client; | |
| use workos::IssuerTrustsCreateRequest; | |
| use workos::organizations_issuer_trusts::CreateOrganizationIssuerTrustParams; | |
| #[tokio::main] | |
| async fn main() -> Result<(), workos::Error> { | |
| let client = Client::new("sk_example_123456789"); | |
| let _result = client | |
| .organizations_issuer_trusts() | |
| .create_organization_issuer_trust( | |
| "org_01EHZNVPK3SFK441A1RGBFSHRT", | |
| CreateOrganizationIssuerTrustParams::new(IssuerTrustsCreateRequest { | |
| type_: "claude".to_string(), | |
| issuer: "https://claude.ai/v1/ema/t/01JZ8X4N2R7Q9M3K5T6V8W0Y1A".to_string(), | |
| }), | |
| ) | |
| .await?; | |
| Ok(()) | |
| } |
| { | |
| "object": "issuer_trust", | |
| "id": "issuer_trust_01JZ8X4N2R7Q9M3K5T6V8W0Y1A", | |
| "organization_id": "org_01EHZNVPK3SFK441A1RGBFSHRT", | |
| "type": "claude", | |
| "issuer": "https://claude.ai/v1/ema/t/01JZ8X4N2R7Q9M3K5T6V8W0Y1A", | |
| "enabled": false, | |
| "created_at": "2026-01-15T12:00:00.000Z", | |
| "updated_at": "2026-01-15T12:00:00.000Z" | |
| } |
POST/organizations /:organization_id /issuer_trusts
Parameters
Returns
Enable or disable an issuer trust. ID-JAGs from a disabled issuer are rejected. enabled is the only field that can be changed, and an omitted field is left unchanged.
| curl --request PATCH \ | |
| --url "https://api.workos.com/organizations/org_01EHZNVPK3SFK441A1RGBFSHRT/issuer_trusts/issuer_trust_01JZ8X4N2R7Q9M3K5T6V8W0Y1A" \ | |
| --header "Authorization: Bearer sk_example_123456789" \ | |
| --header "Content-Type: application/json" \ | |
| -d @- <<'BODY' | |
| { | |
| "enabled": true | |
| } | |
| BODY |
| # workos:manual - include enabled; oagen omits optional body params | |
| require "workos" | |
| WorkOS.configure do |config| | |
| config.api_key = "sk_example_123456789" | |
| end | |
| WorkOS.client.organizations_issuer_trusts.update_organization_issuer_trust( | |
| organization_id: "org_01EHZNVPK3SFK441A1RGBFSHRT", | |
| id: "issuer_trust_01JZ8X4N2R7Q9M3K5T6V8W0Y1A", | |
| enabled: true | |
| ) |
| # workos:manual - include enabled; oagen omits optional body params | |
| from workos import WorkOSClient | |
| client = WorkOSClient(api_key="sk_example_123456789", client_id="client_123456789") | |
| client.organizations_issuer_trusts.update_organization_issuer_trust( | |
| organization_id="org_01EHZNVPK3SFK441A1RGBFSHRT", | |
| id="issuer_trust_01JZ8X4N2R7Q9M3K5T6V8W0Y1A", | |
| enabled=True, | |
| ) |
| // workos:manual - include enabled; oagen omits optional body params | |
| package main | |
| import ( | |
| "context" | |
| "github.com/workos/workos-go/v10" | |
| ) | |
| func main() { | |
| client := workos.NewClient("sk_example_123456789") | |
| _, err := client.OrganizationsIssuerTrusts().Update(context.Background(), "org_01EHZNVPK3SFK441A1RGBFSHRT", "issuer_trust_01JZ8X4N2R7Q9M3K5T6V8W0Y1A", &workos.OrganizationsIssuerTrustsUpdateParams{ | |
| Enabled: workos.Bool(true), | |
| }) | |
| if err != nil { | |
| panic(err) | |
| } | |
| } |
| <?php | |
| // workos:manual - include enabled; oagen omits optional body params | |
| use WorkOS\WorkOS; | |
| $workos = new WorkOS( | |
| apiKey: "sk_example_123456789", | |
| clientId: "client_123456789", | |
| ); | |
| $workos | |
| ->organizationsIssuerTrusts() | |
| ->updateOrganizationIssuerTrust( | |
| organizationId: "org_01EHZNVPK3SFK441A1RGBFSHRT", | |
| id: "issuer_trust_01JZ8X4N2R7Q9M3K5T6V8W0Y1A", | |
| enabled: true, | |
| ); |
| // workos:manual - include enabled; oagen omits optional body params | |
| import com.workos.WorkOS; | |
| WorkOS workos = new WorkOS("sk_example_123456789"); | |
| workos.getOrganizationsIssuerTrusts().update( | |
| "org_01EHZNVPK3SFK441A1RGBFSHRT", "issuer_trust_01JZ8X4N2R7Q9M3K5T6V8W0Y1A", true); |
| // workos:manual - include enabled; oagen omits optional body params | |
| using WorkOS; | |
| var client = new WorkOSClient(new WorkOSOptions { | |
| ApiKey = "sk_example_123456789", | |
| ClientId = "client_123456789", | |
| }); | |
| await client.OrganizationsIssuerTrusts.UpdateAsync("org_01EHZNVPK3SFK441A1RGBFSHRT", | |
| "issuer_trust_01JZ8X4N2R7Q9M3K5T6V8W0Y1A", | |
| new OrganizationsIssuerTrustsUpdateOptions { | |
| Enabled = true, | |
| }); |
| // workos:manual - include enabled; oagen omits optional body params | |
| use workos::Client; | |
| use workos::IssuerTrustsUpdateRequest; | |
| use workos::organizations_issuer_trusts::UpdateOrganizationIssuerTrustParams; | |
| #[tokio::main] | |
| async fn main() -> Result<(), workos::Error> { | |
| let client = Client::new("sk_example_123456789"); | |
| let _result = client | |
| .organizations_issuer_trusts() | |
| .update_organization_issuer_trust( | |
| "org_01EHZNVPK3SFK441A1RGBFSHRT", | |
| "issuer_trust_01JZ8X4N2R7Q9M3K5T6V8W0Y1A", | |
| UpdateOrganizationIssuerTrustParams::new(IssuerTrustsUpdateRequest { | |
| enabled: Some(true), | |
| }), | |
| ) | |
| .await?; | |
| Ok(()) | |
| } |
| { | |
| "object": "issuer_trust", | |
| "id": "issuer_trust_01JZ8X4N2R7Q9M3K5T6V8W0Y1A", | |
| "organization_id": "org_01EHZNVPK3SFK441A1RGBFSHRT", | |
| "type": "claude", | |
| "issuer": "https://claude.ai/v1/ema/t/01JZ8X4N2R7Q9M3K5T6V8W0Y1A", | |
| "enabled": true, | |
| "created_at": "2026-01-15T12:00:00.000Z", | |
| "updated_at": "2026-01-15T12:00:00.000Z" | |
| } |
PATCH/organizations /:organization_id /issuer_trusts /:id
Parameters
Returns
Stop trusting an issuer. ID-JAGs from the issuer are rejected from then on.
| curl --request DELETE \ | |
| --url "https://api.workos.com/organizations/org_01EHZNVPK3SFK441A1RGBFSHRT/issuer_trusts/issuer_trust_01JZ8X4N2R7Q9M3K5T6V8W0Y1A" \ | |
| --header "Authorization: Bearer sk_example_123456789" |
| require "workos" | |
| WorkOS.configure do |config| | |
| config.api_key = "sk_example_123456789" | |
| end | |
| WorkOS.client.organizations_issuer_trusts.delete_organization_issuer_trust( | |
| organization_id: "org_01EHZNVPK3SFK441A1RGBFSHRT", | |
| id: "issuer_trust_01JZ8X4N2R7Q9M3K5T6V8W0Y1A" | |
| ) |
| from workos import WorkOSClient | |
| client = WorkOSClient(api_key="sk_example_123456789", client_id="client_123456789") | |
| client.organizations_issuer_trusts.delete_organization_issuer_trust( | |
| organization_id="org_01EHZNVPK3SFK441A1RGBFSHRT", | |
| id="issuer_trust_01JZ8X4N2R7Q9M3K5T6V8W0Y1A", | |
| ) |
| package main | |
| import ( | |
| "context" | |
| "github.com/workos/workos-go/v10" | |
| ) | |
| func main() { | |
| client := workos.NewClient("sk_example_123456789") | |
| err := client.OrganizationsIssuerTrusts().Delete(context.Background(), "org_01EHZNVPK3SFK441A1RGBFSHRT", "issuer_trust_01JZ8X4N2R7Q9M3K5T6V8W0Y1A") | |
| if err != nil { | |
| panic(err) | |
| } | |
| } |
| <?php | |
| use WorkOS\WorkOS; | |
| $workos = new WorkOS( | |
| apiKey: "sk_example_123456789", | |
| clientId: "client_123456789", | |
| ); | |
| $workos | |
| ->organizationsIssuerTrusts() | |
| ->deleteOrganizationIssuerTrust( | |
| organizationId: "org_01EHZNVPK3SFK441A1RGBFSHRT", | |
| id: "issuer_trust_01JZ8X4N2R7Q9M3K5T6V8W0Y1A", | |
| ); |
| import com.workos.WorkOS; | |
| WorkOS workos = new WorkOS("sk_example_123456789"); | |
| workos.getOrganizationsIssuerTrusts().delete( | |
| "org_01EHZNVPK3SFK441A1RGBFSHRT", "issuer_trust_01JZ8X4N2R7Q9M3K5T6V8W0Y1A"); |
| using WorkOS; | |
| var client = new WorkOSClient(new WorkOSOptions { | |
| ApiKey = "sk_example_123456789", | |
| ClientId = "client_123456789", | |
| }); | |
| await client.OrganizationsIssuerTrusts.DeleteAsync("org_01EHZNVPK3SFK441A1RGBFSHRT", | |
| "issuer_trust_01JZ8X4N2R7Q9M3K5T6V8W0Y1A"); |
| use workos::Client; | |
| #[tokio::main] | |
| async fn main() -> Result<(), workos::Error> { | |
| let client = Client::new("sk_example_123456789"); | |
| client | |
| .organizations_issuer_trusts() | |
| .delete_organization_issuer_trust( | |
| "org_01EHZNVPK3SFK441A1RGBFSHRT", | |
| "issuer_trust_01JZ8X4N2R7Q9M3K5T6V8W0Y1A", | |
| ) | |
| .await?; | |
| Ok(()) | |
| } |
DELETE