Supported Formats

JSON

GET api.dmarcreport.com/v1/teams/:team_id/domain_memberships.json
List of all Domains in your Team

Supported Formats

JSON

Errors

Code Description
401 Unauthorized
404 Missing
500 Server crashed for some reason

Examples

{
  "domain_memberships": [{
    "id": 7,
    "team_id": 6,
    "domain_id": 6,
    "created_at": "2019-11-19T07:01:46.740Z",
    "updated_at": "2019-11-19T07:01:46.740Z"
  }, {
    "id": 14,
    "team_id": 6,
    "domain_id": 4,
    "created_at": "2019-11-19T13:46:59.335Z",
    "updated_at": "2019-11-19T13:46:59.335Z"
  }]
}

GET api.dmarcreport.com/v1/teams/:team_id/domain_memberships/:id.json
Details of certain Domain in your team

Supported Formats

JSON

Errors

Code Description
401 Unauthorized
404 Missing
500 Server crashed for some reason

Examples

{
  "id": 7,
  "created_at": "2019-11-19T07:01:46.740Z",
  "updated_at": "2019-11-19T07:01:46.740Z",
  "domain": {
    "id": 6,
    "user_id": 1,
    "address": "abc.com",
    "created_at": "2019-09-27T13:19:26.385Z",
    "updated_at": "2019-09-27T13:19:26.385Z",
    "rua_report": null,
    "ruf_report": null,
    "dmarc_status": 0
  }
}

POST api.dmarcreport.com/v1/teams/:team_id/domain_memberships.json
Add your Domain in your Team

Supported Formats

JSON

Errors

Code Description
401 Unauthorized
404 Missing
500 Server crashed for some reason

Params

Param name Description
domain_membership
required

Validations:

  • Must be a Hash

domain_membership[domain_id]
required

ID of your domain

Validations:

  • Must be one of: String, Integer.


DELETE api.dmarcreport.com/v1/teams/:team_id/domain_memberships/:id.json
Remove Domain from your team

Supported Formats

JSON

Errors

Code Description
401 Unauthorized
404 Missing
500 Server crashed for some reason