Unsubscribe from the weekly digest
POST
/api/v1/unsubscribe/{token}
const url = 'http://localhost:3000/api/v1/unsubscribe/example';const options = {method: 'POST'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:3000/api/v1/unsubscribe/exampleWhat the digest’s own link does, without signing in: the token names the person. A 404 when it isn’t a token of this server’s.
No key needed.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”token
required
string
The token in the weekly digest’s unsubscribe link
Responses
Section titled “Responses”Turned off
Media typeapplication/json
object
data
required
object
weekly
required
The weekly digest: on Mondays, last week in each project you edit or administer, by email
boolean
Examplegenerated
{ "data": { "weekly": true }}default
Section titled “default”An error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
detail
Examplegenerated
{ "error": { "code": "example", "message": "example", "detail": "example" }}