Zapmail
latest
  • latest
  • v1
  1. domains
Zapmail
latest
  • latest
  • v1
  • Zapmail Docs
  • users
    • Retrieve User Details
      GET
  • workspaces
    • Retrieve all workspaces
      GET
    • Create new workspace
      POST
    • Update workspace
      PUT
  • billing
    • Add Billing Details
      POST
    • Update Billing Details
      PUT
  • mailbox
    • Retrieve All Mailboxes
    • Get Mailbox Details by ID
    • Assign New Mailboxes to Domains
    • Update mailbox
    • Remove mailboxes on next renewal
    • Get Authenticator code
    • Remove Mailboxes Instantly
  • payments & wallet
    • Add balance to wallet
    • Get wallet balance
    • Enable auto recharge
  • export
    • Export mailboxes
    • Add third party account details
    • Update third party account details
  • subscriptions
    • Get all subscriptions
    • Cancel subscription
    • Upgrade existing subscription
  • domains
    • Retrieve All Domains
      GET
    • List Assignable Domains
      GET
    • Add DMARC record
      POST
    • Add Domain forwarding
      POST
    • Get Name servers to connect domain
      POST
    • Verify Name Server Propagation
      POST
    • Connect Domain with Zapmail
      POST
    • Enable email forwarding
      POST
    • Remove email forwarding
      DELETE
    • Enable catch all emails
      POST
    • Remove catch all emails
      DELETE
    • Check DNS records
      POST
    • Remove unused domains
      DELETE
    • Get available domains for registration
      POST
    • Get domains purchase payment link
      POST
    • Get domain connection requests
      GET
    • Remove domain connection requests
      DELETE
    • Connect Domain with Zapmail (New)
      GET
    • Add Google Client ID to Domain
      POST
  • dns
    • Get dns records
    • Add dns records
    • Update dns records
    • Delete dns records
  1. domains

Add Google Client ID to Domain

POST
/domains/add-client-id
Associates a Google OAuth Client ID with one or more domain IDs for a specified application.

Request

Header Params

Body Params application/json

Example
{
  "domainIds": ["<domain-id-1>", "<domain-id-2>", "..."],
  "clientId": "<google-oauth-client-id>",
  "app": "<AppName>"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.zapmail.ai/api/domains/add-client-id' \
--header 'x-auth-zapmail: ' \
--header 'Content-Type: application/json' \
--data-raw '{
  "domainIds": ["<domain-id-1>", "<domain-id-2>", "..."],
  "clientId": "<google-oauth-client-id>",
  "app": "<AppName>"
}'

Responses

🟢200Success
application/json
Body

Example
{
  "status": 200,
  "message": "Client ID will be added to the domains soon."
}
🟠422Parameter Error
🟠400Bad Request
Modified at 2025-07-22 11:27:17
Previous
Connect Domain with Zapmail (New)
Next
Get dns records
Built with