Mailgun allows you to tag your email with unique identifiers. Tags are visible via our analytics tags API endpoint.
Updates the tag description for an account
A 200 response
A 400 response
{- "tag": "name-of-tag-to-update",
- "description": "updated tag description"
}
"Tag updated"
Gets the list of all tags, or filtered by tag prefix, for an account
A 200 response
required | Array of objects |
object |
A 400 response
{- "pagination": {
- "sort": "lastseen:desc",
- "limit": 10
}, - "include_subaccounts": true
}
{- "items": [
- {
- "account_id": "12345",
- "parent_account_id": "12345",
- "tag": "tag1",
- "description": "tag used to identify campaign 1",
- "first_seen": { },
- "last_seen": { },
- "metrics": { },
- "account_name": "account1"
}, - {
- "account_id": "67890",
- "parent_account_id": "12345",
- "tag": "tag2",
- "description": "tag used to identify campaign 2",
- "first_seen": { },
- "last_seen": { },
- "metrics": { },
- "account_name": "account2"
}
], - "pagination": {
- "sort": "lastseen:desc",
- "limit": 10,
- "total": 2
}
}
Deletes the tag for an account
A 200 response
A 400 response
{- "tag": "name-of-tag-to-delete"
}
"Tag deleted"