Mailrelay API Reference

Replace a subscriber's tags

PUT https://{account}/api/v1/subscribers/{subscriber_id}/tags

Authentication

Requires an API key sent in the X-AUTH-TOKEN header.

Replaces the subscriber's full tag set with the given tags. An empty array removes all tags. Tags are matched by name and must already exist.

Parameters

NameTypeRequiredDescription
subscriber_id integer Yes ID of the subscriber
tags array Yes Tag names.

Responses

StatusDescription
404 Couldn't find record with provided ID.
422 A validation error occurred. Check the response body for more information.
200 Success
401 The API key wasn't sent, is invalid or has expired
403 The API key or its user doesn't have permission to use this endpoint, or the request comes from an IP address the key doesn't allow.
429 Too many requests. You have exceeded the rate limit, wait and try again later.
500 An internal error happened. Try again later.

Response fields

NameTypeDescription
id integer Id
name string Name
color string Color
created_at string Created at
updated_at string Updated at