---
title: "Generate SSO Link"
method: POST
path: "/v1/sso/generate_link"
tags: ["SSO"]
---

# Generate SSO Link

`POST /v1/sso/generate_link`

This endpoint generates a single sign on link that authorizes the recipient on their credential.

The code expires after used once.

## Request body

- object
  - `credential_id` string — The unique ID of the credential. If you supply your own internal ID as a license_id, you should use that.
  - `recipient_id` string — The recipient's user ID as defined by your organization. If more than one credential exists for your organization for this student, we give the link to their last (most recent) credential.
  - `recipient_email` string — The recipient's email address. If more than one credential exists in your organization for this student, we give a link to their last (most recent) credential.
  - `wallet_view` boolean — If multiple credentials belonging to the recipient requested for this organization and the wallet view flag is set true, we provide a link to the recipients credential wallet.
  - `group_id` string — The group that a credential belongs to. If more than one credential exists for your group for this student, we give the link to their last (most recent) credential.
  - `redirect_to` string — If the code is wrong, we will redirect student back to this link by default we use your registered url.
  - `embed` boolean — If the embed flag is set to true, we provide a link to the recipient's credential wallet embed page. This is only supported with wallet view.

## Response `200`

OK

- object
  - `link` string

---

[API](https://skmtc.net/accredible/apis/accredible-credential-api.md) · [All operations](https://skmtc.net/accredible/apis/accredible-credential-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/accredible/accredible-credential-api/versions/56b317c13686/schema)
