cURL
curl --request POST \ --url https://directt.to/api/v1/links \ --header 'Content-Type: application/json' \ --data ' { "link": "<string>", "projectDomain": "<string>", "metaData": { "title": "<string>", "description": "<string>", "image": "<string>" }, "androidReferrer": "<string>" } '
{ "linkId": "<string>", "url": "<string>" }
The long URL that will be returned when you retrieve the link
The project domain for the link. Either the subdomain or your custom domain without the protocol.
Metadata for the link
Show child attributes
Title for the link
Description for the link
Image URL for the link
Android referrer for the link (optional)
Link successfully created
ID of the created link
Shortened url for the link. Either composed of your custom domain and an alias or the subdomain and an alias.