---
title: "Collect credential associated with the bearer token with the requested credential properties."
method: POST
path: "/oid4vci/api/credential"
tags: ["Issuer OID4VCI API"]
---

# Collect credential associated with the bearer token with the requested credential properties.

`POST /oid4vci/api/credential`

Issues a credential for a given bearer token and credential request. Supports API versioning via SWIYU-API-Version header. Returns the issued credential in JSON or JWT format.

## Headers

- `Authorization` string, required
- `DPoP` string

## Request body

- CreateCredentialRequest — Request to the Credential Endpoint as defined in OID4VCI 1.0 specification
  - `credential_configuration_id` string, required — String that uniquely identifies one of the keys in the name/value pairs stored in the credential_configurations_supported Credential Issuer metadata. Only used if a credential_identifiers parameter was not returned from the Token Response as part of the authorization_details parameter. It MUST NOT be used otherwise.
  - `proofs` ProofsDto
    - `jwt` string[], required — ProofsDto represents the proofs object in the OID4VCI Credential Request.
  - `credential_response_encryption` CredentialResponseEncryption
    - `jwk` object, required
    - `enc` string, required

## Response `200`

Credential issued successfully.

- CredentialEndpointResponse
  - `credentials` CredentialObjectDto[]
    - `credential` string — One sdjwt credential as string, if multiple credentials are issued each is wrapped in a separate CredentialObjectDto object.

## Other responses

- `202` — Successful deferred credential. The credential will be issued later
- `400` — Invalid request or validation error

---

[API](https://skmtc.net/swiyu/apis/issuer-service-api.md) · [All operations](https://skmtc.net/swiyu/apis/issuer-service-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/swiyu/issuer-service-api/revisions/3335603aa636/schema)
