Add shortlink
POST/shortlinks
Create a shortlink for a target URL
Request
- application/json
Body
required
targetUrl stringrequired
Target URL for the shortlink
slug stringrequired
Shortlink slug
Responses
- 201
- 400
201 CREATED
Response Headers
Access-Control-Allow-Origin
string
Access-Control-Allow-Methods
string
Access-Control-Allow-Headers
string
- application/json
- Schema
- Example (from schema)
Schema
url string
Shortlink URL
{
"url": "string"
}
400 OK
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
errors
object[]
List of errors
key string
Error Key
error string
Error Message
{
"errors": [
{
"key": "string",
"error": "string"
}
]
}
Loading...