---
title: "Retrieve SSO Link for an account"
method: GET
path: "/api/accounts/sso/{account_name}/link"
tags: ["Accounts"]
---

# Retrieve SSO Link for an account

`GET /api/accounts/sso/{account_name}/link`

## Request

- Base URL: `https://api.duda.co`
- URL: `https://api.duda.co/api/accounts/sso/{account_name}/link`
- Auth: HTTP basic

Generates a single sign-on link that logs the account into Duda. Use `target` and `site_name` to send the user straight to a site's editor, overview, store management, stats or another destination instead of the dashboard.

## Path parameters

- `account_name` string, required

## Query parameters

- `target` 'DASHBOARD' | 'EDITOR' | 'STATS' | 'RESET_SITE' | 'SWITCH_TEMPLATE' | 'LIGHT_EDITOR' | 'RESET_BASIC' | 'STORE_MANAGEMENT' | 'SITE_OVERVIEW' | 'SITE_SEO_OVERVIEW' | 'SWITCH_TEMPLATE_WITH_AI' | 'SWITCH_GENERATE_TEMPLATE_CONTENT' | 'VIBE' | 'SWITCH_TEMPLATE_WITH_GENERATE_FROM_PROMPT' | 'AEO_CONTENT_SUGGESTIONS'
- `site_name` string
- `initialInput` string

## Response `200`

SSO link

- SSOLinkRDT
  - `url` string

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `402`: Payment Required
- `405`: Method Not Allowed
- `429`: Too many requests. The rate limit was exceeded.
- `500`: Internal Server Error

---

[API](https://skmtc.dev/duda/apis/duda-partner-api.md) - [All operations](https://skmtc.dev/duda/apis/duda-partner-api/llms.txt) - [OpenAPI document](https://skmtc.dev/duda/apis/duda-partner-api/revisions/52be4d41cb12?raw)
