---
title: "Regenerate guest login URL"
method: POST
path: "/guests/{guest_id}/login-url"
---

# Regenerate guest login URL

`POST /guests/{guest_id}/login-url`

Creates a new login URL for an existing guest. Use this if the previous URL expired or was compromised.

## Path parameters

- `guest_id` string, required — The ID of the guest to regenerate the login URL for.

## Request body

- RegenerateGuestLoginURLParams
  - `$schema` string, uri — A URL to the JSON Schema for this object.
  - `expires_in` integer — The number of seconds the guest session should last. Defaults to 72 hours.
  - `redirect_url` string — Where to redirect the guest after they log in.

## Response `200`

OK

- RegenerateGuestLoginURLResponse
  - `$schema` string, uri — A URL to the JSON Schema for this object.
  - `login_url` string, required — The new login URL to share with the guest.
  - `login_url_expires_at` string, date-time, required — When the login URL expires.

## Other responses

- `default` — Error

---

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