Lynkr API (1.0.0)
Download OpenAPI specification:Download
Response samples
- 200
Content type
application/ld+json
{
}
List domains
Return collection of domains, paginated by cursor (50 domains by call).
query Parameters
cursor[id] | string Example: cursor[id]=018b9a8d-055d-7072-b7b1-b1f5021ee896 Last retrieved domain id |
Responses
Response samples
- 200
Content type
[- {
- "id": "string",
- "name": "string",
- "active": true,
- "dnsConfigurationState": "pending_validation",
- "nameservers": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z"
}
]
Create a domain
Create a new custom domain. Return DNS nameservers configuration to configure.
Request Body schema: application/ld+jsonrequired
New domain informations
name | string Domain name |
Responses
Request samples
- Payload
Content type
application/ld+json
{
}
Response samples
- 201
Content type
{- "id": "string",
- "name": "string",
- "active": true,
- "dnsConfigurationState": "pending_validation",
- "nameservers": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z"
}
Domain informations
Return domain informations
path Parameters
id required | string DomainResource identifier |
Responses
Response samples
- 200
Content type
{- "id": "string",
- "name": "string",
- "active": true,
- "dnsConfigurationState": "pending_validation",
- "nameservers": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z"
}
Validate DNS configuration
Validate DNS configuration in order to finalize domain configuration on Lynkr.
path Parameters
id required | string DomainResource identifier |
Responses
Response samples
- 202
Content type
application/ld+json
{- "@context": "string",
- "@id": "string",
- "@type": "string",
- "id": "string",
- "name": "string",
- "active": true,
- "dnsConfigurationState": "pending_validation",
- "nameservers": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z"
}
List links
Return collection of links, paginated by cursor (50 links by call).
query Parameters
cursor[id] | string Example: cursor[id]=018b9e11-ee4b-7187-946b-28803ffe9b75 Last retrieved link id |
Responses
Response samples
- 200
Content type
[- {
- "id": "string",
- "path": "string",
- "domainName": "string",
- "shortUrl": "string",
- "url": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}
]
Shorten link
Shorten a link. Could specify a custom path or/and a custom domain.
Request Body schema: required
The new Link resource
url required | string <uri> |
domainName | string or null |
path | string or null |
Responses
Request samples
- Payload
Content type
{- "domainName": "string",
- "path": "string"
}
Response samples
- 201
Content type
{- "id": "string",
- "path": "string",
- "domainName": "string",
- "shortUrl": "string",
- "url": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}