Jump to content
Froxlor Forum
  • 0

API endpoint for listing a user's domains?


Copprhead

Question

I'm experimenting with the API for managing a user's emails. For creating an email address, I need to know which domains the user has available. The API endpoints for domains apparently all need admin permissions, but I only have the user's api key, not an admin api key. Is there some way to list only the user's domains with user api key privileges?

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

Now I would like to only get the domains that are email-domains. So I tried with sql_search:

{
    "header": {
        "apikey": "{{apikey}}",
        "secret": "{{secret}}"
       
    },
    "body": {
        "command": "SubDomains.listing",
        "params": {
            "sql_search": {
                "isemaildomain": {
                    "op": "=",
                    "value": "1"
                }
            }
        }
    }
}

But this gives a 500 with message

SQLSTATE[23000]: Integrity constraint violation: 1052 Column 'isemaildomain' in where clause is ambiguous

What am I doing wrong?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...