up

Unsubscribe

The description of the unsubscribe API is not yet available.

Get unsubscribe

An unsubscribe is a recipient in your datasource that is no longer subscribing to a specific campaign. This method facilitates working with unsubscribes.

HTTP method: GET
http://api.sendcastle.com/v1/unsubscribe/[123]
cURL example
curl http://api.sendcastle.com/v1/unsubscribe/[123] \
	-H "Authorization: Bearer YOUR_API_SECRET_HERE" \
-H "Content-Type: application/json"
Example of result
{
	"responseId":"50cef8fcaxxxx",
	"version":1,
	"success":true,
	"data":{
		"UNKNOWN_RETURN_OBJECT: 'unsubscribe.'":{
		"id":"1",
		"xxx"
	}
}
Other constraints:
  • Identifier should be an integer
  • No additional parameters required, unless stated elsewhere
  • No extra security requirements
  • Requires read access
Create unsubscribe

An unsubscribe is a recipient in your datasource that is no longer subscribing to a specific campaign. This method facilitates working with unsubscribes.

HTTP method: PUT
http://api.sendcastle.com/v1/unsubscribe/[123]
cURL example
curl http://api.sendcastle.com/v1/unsubscribe/[123] \
	-H "Authorization: Bearer YOUR_API_SECRET_HERE" \
-H "Content-Type: application/json" \ -X PUT
Example of result
{
	"responseId":"50cef8fcaxxxx",
	"version":1,
	"success":true,
	"data":{
		"id":"1"
	}
}
Other constraints:
  • Identifier should be an integer
  • No additional parameters required, unless stated elsewhere
  • No extra security requirements
  • Requires create access
Change unsubscribe

An unsubscribe is a recipient in your datasource that is no longer subscribing to a specific campaign. This method facilitates working with unsubscribes.

HTTP method: POST
http://api.sendcastle.com/v1/unsubscribe/[123]
cURL example
curl http://api.sendcastle.com/v1/unsubscribe/[123] \
	-H "Authorization: Bearer YOUR_API_SECRET_HERE" \
-H "Content-Type: application/json" \ -X POST
Example of result
{
	"responseId":"50cef8fcaxxxx",
	"version":1,
	"success":true,
	"data":true
}
Other constraints:
  • Identifier should be an integer
  • No additional parameters required, unless stated elsewhere
  • No extra security requirements
  • Requires write access
  • Requires administrator access
Delete unsubscribe

An unsubscribe is a recipient in your datasource that is no longer subscribing to a specific campaign. This method facilitates working with unsubscribes.

HTTP method: DELETE
http://api.sendcastle.com/v1/unsubscribe/[123]
cURL example
curl http://api.sendcastle.com/v1/unsubscribe/[123] \
	-H "Authorization: Bearer YOUR_API_SECRET_HERE" \
-H "Content-Type: application/json" \ -X DELETE
Example of result
{
	"responseId":"50cef8fcaxxxx",
	"version":1,
	"success":true,
	"data":true
}
Other constraints:
  • Identifier should be an integer
  • No additional parameters required, unless stated elsewhere
  • No extra security requirements
  • Requires delete access
  • Requires administrator access