Deactivate a link

THE CALL, PART BY PART

method

DELETE

host

strait.link

version

/v1

resource

/links/{slug}

DELETE /v1/links/{slug}

Auth: secret key as Authorization: Bearer. Server-side only.

Request

Parameters

slug required string path
The link's slug: the part after your link domain, e.g. summer

Response

  • 204 Deactivated
  • 401 Missing or invalid secret key
  • 404 No active link with this slug in the key's workspace
Request · curl
curl -X DELETE https://strait.link/v1/links/summer \
  -H "Authorization: Bearer $SECRET_KEY"

The response, printed

Response 204 (no body)
HTTP/1.1 204 No Content