Create a tracked link

A short link to copy anywhere, on your own link domain when one is active, else ours.

POST/v1/links

Body Parameters

  • urlstringrequired

    Where the link goes. Public shorteners and look-alike domains are refused. Example: https://example.com/sale.

  • namestring

    Optional. Your name for it. At most 80 characters.

Details

The same url again returns the same link with 200. Scope: links.

Responses

  • 200TrackedLink

    That url already had a link

  • 201TrackedLink

    Created

  • 401Error

    Missing, malformed, or revoked API key

  • 402Error

    Billable live calls only: the prepaid credit balance cannot cover the call (insufficient_credits); nothing was done or charged

  • 429Error

    Rate limit or quota exceeded

Response Fields (200)

  • objectlink
  • urlstring

    Example: https://example.com/sale.

  • namestring

    Nullable.

  • short_urlstring

    The link to copy. Null for a link that only went out in texts, where each recipient has their own. Nullable. Example: https://txtkto.com/Ab3dEf9h.

  • click_idstring

    Nullable. Example: Ab3dEf9h.

  • textsinteger

    Texts that carried it.

  • clicksinteger

    People opening it. Link previews are not counted.

  • conversionsinteger
  • value_centsinteger
  • testboolean
  • created_atstring (date-time)

    Nullable.

  • last_activity_atstring (date-time)

    Nullable.

Errors

Every error has the same JSON shape, and request_id matches the X-Request-Id response header. Errors lists every code and what to do about it.

  • 401

    Missing, malformed, or revoked API key

  • 402

    Billable live calls only: the prepaid credit balance cannot cover the call (insufficient_credits); nothing was done or charged

  • 429

    Rate limit or quota exceeded