Resolve Short Link (v1)
Method & Path
GET /api/v1/public/links/{code}
Description
Resolves a short link code (10-character alphanumeric) to a relative targetPath. This endpoint is public (no auth) and is intended to power browser redirects like base/links/{code}.
Backend path
The backend is mounted under /v1, so the actual path is:
GET /v1/public/links/{code}
Authentication
None
Persona access:
- Customer (client) (public/no auth)
Headers
Content-Type: application/json
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | 10-char alphanumeric code ([A-Za-z0-9]{10}) |
Query Parameters
None
Request Body
None
Response 200 OK
{
"targetPath": "/public/labs/visits/3f2c.../print"
}
Common Errors
- 404 Not Found: Code not found
- 422 Unprocessable Entity: Invalid code format
- 500 Internal Server Error: Unexpected failure