---
title: "Get a JWT token for a configured service account belonging to the requesting org."
method: POST
path: "/openid/{owner}/"
tags: ["openid"]
---

# Get a JWT token for a configured service account belonging to the requesting org.

`POST /openid/{owner}/`

Get a JWT token for a configured service
account belonging to the requesting org.

## Request body

- OidcRequest
  - `oidc_token` string, required — Serialized OIDC token.
  - `service_slug` string, required — Slug for the service account.

## Response `201`

Created

- object
  - `token` string — Serialized JWT to be used for authentication.

## Other responses

- `400` — The JWT cannot be created.
- `401` — OIDC token cannot be authenticated.
- `422` — Missing or invalid parameters (see detail).

---

[API](https://skmtc.dev/cloudsmith/apis/cloudsmith-api-v1.md) · [All operations](https://skmtc.dev/cloudsmith/apis/cloudsmith-api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cloudsmith/cloudsmith-api-v1/revisions/4d7879df9b2f/schema)
