2016-10-22 16:44:14 -05:00
{
"type" : "object" ,
2021-10-02 03:31:23 -05:00
"required" : [
"shortCode" ,
"shortUrl" ,
"longUrl" ,
"dateCreated" ,
2022-12-16 06:34:34 -06:00
"visitsSummary" ,
2021-10-02 03:31:23 -05:00
"tags" ,
"meta" ,
"domain" ,
"title" ,
"crawlable" ,
2024-10-10 02:33:55 -05:00
"forwardQuery" ,
"hasRedirectRules"
2021-10-02 03:31:23 -05:00
] ,
2016-10-22 16:44:14 -05:00
"properties" : {
"shortCode" : {
"type" : "string" ,
"description" : "The short code for this short URL."
} ,
2018-08-13 09:17:43 -05:00
"shortUrl" : {
"type" : "string" ,
"description" : "The short URL."
} ,
"longUrl" : {
2016-10-22 16:44:14 -05:00
"type" : "string" ,
"description" : "The original long URL."
} ,
"dateCreated" : {
"type" : "string" ,
"format" : "date-time" ,
"description" : "The date in which the short URL was created in ISO format."
} ,
2022-12-16 06:34:34 -06:00
"visitsSummary" : {
2023-01-02 05:35:15 -06:00
"$ref" : "./VisitsSummary.json"
2016-10-22 16:44:14 -05:00
} ,
"tags" : {
"type" : "array" ,
"items" : {
"type" : "string"
} ,
"description" : "A list of tags applied to this short URL"
2018-08-13 09:17:43 -05:00
} ,
2019-07-08 11:42:53 -05:00
"meta" : {
"$ref" : "./ShortUrlMeta.json"
2020-02-02 01:57:04 -06:00
} ,
"domain" : {
2023-07-01 10:04:24 -05:00
"type" : [ "string" , "null" ] ,
2020-02-02 01:57:04 -06:00
"description" : "The domain in which the short URL was created. Null if it belongs to default domain."
2021-02-02 13:51:28 -06:00
} ,
"title" : {
2023-07-01 10:04:24 -05:00
"type" : [ "string" , "null" ] ,
2021-02-02 13:51:28 -06:00
"description" : "A descriptive title of the short URL."
2021-05-22 00:32:47 -05:00
} ,
"crawlable" : {
"type" : "boolean" ,
"description" : "Tells if this URL will be included as 'Allow' in Shlink's robots.txt."
2021-10-02 03:31:23 -05:00
} ,
"forwardQuery" : {
"type" : "boolean" ,
"description" : "Tells if this URL will forward the query params to the long URL when visited, as explained in [the docs](https://shlink.io/documentation/some-features/#query-params-forwarding)."
2024-10-10 02:33:55 -05:00
} ,
"hasRedirectRules" : {
"type" : "boolean" ,
"description" : "Whether this short URL has redirect rules attached to it or not. Use [this endpoint](https://api-spec.shlink.io/#/Redirect%20rules/listShortUrlRedirectRules) to get the actual list of rules."
2016-10-22 16:44:14 -05:00
}
}
}