# Create Shortlink

POST /api/v2/projects/{projectId}/shortlinks

Creates a short link on a domain that already belongs to the project. The domain has to be verified and have short links turned on. Point it at a real public page of this product. Do not invent a destination.

## Request

- projectId: string, path, required — ID of the project that will own the short link.
- destinationURL: string, required — URL visitors are sent to when they open the short link.
- domainId: string, required — ID of the domain that hosts the short link.
- shortLinkDomain: string, required — Hostname of the short link, for example go.example.com.
- shortLinkPath: string, required — Path on that hostname, without a leading slash.

## Response

- 200: Successful response
  - createdAt: string, required
  - destinationURL: string, required — URL visitors are sent to when they open the short link.
  - domainId: string, required
  - id: string, required
  - projectId: string, required
  - shortLinkDomain: string, required
  - shortLinkPath: string, required
  - updatedAt: string, required
- 400: Invalid input data
- 401: Authorization not provided
- 403: Insufficient access
- 500: Internal server error
