Shortlinks
Create Shortlink
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.
Authorization
Authorization AuthorizationBearer <token>
In: header
Path Parameters
projectIdrequiredstring
ID of the project that will own the short link.
Request Body
application/json
destinationURLrequiredstring
URL visitors are sent to when they open the short link.
Format: uri
shortLinkDomainrequiredstring
Hostname of the short link, for example go.example.com.
shortLinkPathrequiredstring
Path on that hostname, without a leading slash.
domainIdrequiredstring
ID of the domain that hosts the short link.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://www.saasco.com/api/v2/projects/string/shortlinks" \ -H "Content-Type: application/json" \ -d '{ "destinationURL": "http://example.com", "shortLinkDomain": "string", "shortLinkPath": "string", "domainId": "string" }'{
"id": "string",
"createdAt": "string",
"updatedAt": "string",
"destinationURL": "http://example.com",
"shortLinkDomain": "string",
"shortLinkPath": "string",
"projectId": "string",
"domainId": "string"
}{
"code": "BAD_REQUEST",
"message": "Invalid input data",
"issues": []
}{
"code": "UNAUTHORIZED",
"message": "Authorization not provided",
"issues": []
}{
"code": "FORBIDDEN",
"message": "Insufficient access",
"issues": []
}{
"code": "INTERNAL_SERVER_ERROR",
"message": "Internal server error",
"issues": []
}