---
updatedAt: 2026-08-10T23:54:32.000Z
agentTools:
  projectIndex: https://docs.wistia.com/llms.txt
---

# Resolve share link

Resolves a share link URL segment — the part after `/s/` in a share
link like `https://example.wistia.com/s/summer-sale` — to the share
link and the media it points to, including the media's hashed ID.

The identifier may be the share link's hashed ID or its custom slug.
Historical slugs that were later changed still resolve to the link.

## Requires api token with one of the following permissions
```
Read all folder and media data
```

Tokens with the "Act with a team member's permissions" permission
(`all:delegate_to_contact_permissions` scope) can also be used. Requests
made with such a token are authorized using the permissions of the
contact assigned to the token.

An [expiring access token](https://docs.wistia.com/reference/post_expiring-token)
created with the `all:delegate_to_contact_permissions` scope and an
authorization naming the share link's media (any permission) can also be
used. The share link of a media the token does not name is not found.


# OpenAPI definition

````json
{
  "openapi": "3.1.1",
  "info": {
    "title": "Data API",
    "description": "Wistia Data API",
    "version": "2026.09.0"
  },
  "servers": [
    {
      "url": "https://api.wistia.com/modern"
    }
  ],
  "security": [
    {
      "BearerAuth": []
    }
  ],
  "tags": [
    {
      "name": "Share Links"
    }
  ],
  "paths": {
    "/share_links/{identifier}": {
      "get": {
        "summary": "Resolve share link",
        "x-speakeasy-group": "shareLinks",
        "x-speakeasy-name-override": "resolve",
        "description": "Resolves a share link URL segment — the part after `/s/` in a share\nlink like `https://example.wistia.com/s/summer-sale` — to the share\nlink and the media it points to, including the media's hashed ID.\n\nThe identifier may be the share link's hashed ID or its custom slug.\nHistorical slugs that were later changed still resolve to the link.\n\n## Requires api token with one of the following permissions\n```\nRead all folder and media data\n```\n\nTokens with the \"Act with a team member's permissions\" permission\n(`all:delegate_to_contact_permissions` scope) can also be used. Requests\nmade with such a token are authorized using the permissions of the\ncontact assigned to the token.\n\nAn [expiring access token](https://docs.wistia.com/reference/post_expiring-token)\ncreated with the `all:delegate_to_contact_permissions` scope and an\nauthorization naming the share link's media (any permission) can also be\nused. The share link of a media the token does not name is not found.\n",
        "parameters": [
          {
            "name": "identifier",
            "in": "path",
            "description": "The share link's URL segment — its hashed ID or custom slug.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Wistia-API-Version",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "default": "2026-09"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "unevaluatedProperties": false,
                  "type": "object",
                  "description": "A shareable link for a single media. Each media can have at most one\nshare link, and the link's `visibility` controls who can view the\nmedia when visiting the link.\n",
                  "required": [
                    "id",
                    "media_id",
                    "url",
                    "slug",
                    "visibility",
                    "created_at",
                    "updated_at"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "The hashed ID of the share link. This appears in the link's URL."
                    },
                    "media_id": {
                      "type": "string",
                      "description": "The hashed ID of the media this share link points to."
                    },
                    "url": {
                      "type": "string",
                      "format": "uri",
                      "description": "The full URL viewers can use to view the media via this share link."
                    },
                    "slug": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The share link's custom slug, if one is set. When present, the slug\nreplaces the hashed ID in the link's URL.\n"
                    },
                    "visibility": {
                      "type": "string",
                      "enum": [
                        "unlocked",
                        "account",
                        "locked",
                        "domain_verified"
                      ],
                      "description": "Controls who can view the media via this share link.\n\n- `unlocked`: anyone with the link can view the media.\n- `account`: only signed-in members of the media's account can view.\n- `locked`: only contacts with access to the media's folder can view.\n- `domain_verified`: only viewers signed in with an email address at a\n  domain verified on the media's account can view. Requires the account\n  to be enrolled in the domain validation gate; otherwise setting this\n  value returns 400.\n"
                    },
                    "created_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the share link was created."
                    },
                    "updated_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the share link was last updated."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized, invalid or missing token",
            "content": {
              "application/json": {
                "schema": {
                  "unevaluatedProperties": false,
                  "type": "object",
                  "properties": {
                    "code": {
                      "description": "A machine-readable identifier for the specific authorization failure.",
                      "type": "string",
                      "enum": [
                        "unauthorized_credentials",
                        "account_inactive",
                        "unauthorized_scope",
                        "unauthorized_params"
                      ]
                    },
                    "error": {
                      "type": "string",
                      "examples": [
                        "Invalid credentials."
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "unevaluatedProperties": false,
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "examples": [
                        "Folder with ID 'fakeid' not found."
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "unevaluatedProperties": false,
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "examples": [
                        "Internal server error"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Share Links"
        ],
        "x-readme": {
          "code-samples": [
            {
              "name": "Typescript (SDK)",
              "language": "javascript",
              "code": "import { Wistia } from \"@wistia/wistia-api-client\";\n\nconst wistia = new Wistia({\n  bearerAuth: process.env[\"WISTIA_BEARER_AUTH\"] ?? \"\",\n});\n\nasync function run() {\n  const result = await wistia.shareLinks.resolve({\n    identifier: \"<value>\",\n  });\n\n  console.log(result);\n}\n\nrun();"
            }
          ]
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "x-readme": {
    "samples-languages": [
      "javascript",
      "shell",
      "node",
      "python",
      "ruby"
    ]
  }
}
````