Supported Formats

JSON

GET api.dmarcreport.com/v2/accounts/:account_id/domain_accounts
List domain accounts

Supported Formats

JSON

Errors

Code Description
401 Unauthorized
403 Forbidden
404 Not Found
500 Server crashed for some reason

Examples

{
    "owner_email": "abc@xyz.org",
    "account_managements": [
        {
            "id": 116,
            "account_id": 13,
            "account_title": "team1",
            "domain_id": 2595,
            "domain_address": "api-v3.com",
            "timestamp": null
        },
        {
            "id": 117,
            "account_id": 13,
            "account_title": "team1",
            "domain_id": 2597,
            "domain_address": "api.com",
            "timestamp": null
        }
    ]
}

GET api.dmarcreport.com/v2/accounts/:account_id/domain_accounts/:id
Details of domain account

Supported Formats

JSON

Errors

Code Description
401 Unauthorized
403 Forbidden
404 Not Found
500 Server crashed for some reason

Examples

{
    "id": 11,
    "domain_id": 255,
    "account_id": 184,
    "timestamp": null
}

POST api.dmarcreport.com/v2/accounts/:account_id/domain_accounts.json
Add domains in account

Supported Formats

JSON

Errors

Code Description
401 Unauthorized
403 Forbidden
404 Not Found
500 Server crashed for some reason

Params

Param name Description
domain_account
optional

Validations:

  • Must be a Hash

domain_account[account_attributes]
required

Validations:

  • Must be a Hash

domain_account[account_attributes][id]
required

id of account, in which you want to add domains

Validations:

  • Must be a String

domain_account[account_attributes][domain_ids]
required

ids of domain you want to add in this account.

Validations:

  • Must be an array of any type


DELETE api.dmarcreport.com/v2/accounts/:account_id/domain_accounts/:domain_accounts_id.json
Delete domain from account

Supported Formats

JSON

Errors

Code Description
401 Unauthorized
403 Forbidden
404 Not Found
500 Server crashed for some reason