Skip to main content

Attempting to connect Zapier to the Anytime Mailbox API - https://docs.anytimemailbox.com/operator-api/ via my own integration.

 

Appears to test successfully via Postman, I keep getting this error when testing the connection.

 

Tips, pointers greatly appreciated.

 

I took a look at these two posts, sadly they didn’t help.

  •  

 

 

 

 

We hit an error adding your new account

authentication failed: The app returned "404". What happened (You are seeing this because you are an admin): Stack trace: ResponseError: {"status":404,"headers":{"content-type":null,"retry-after":null},"content":"","request":{"url":"https://connect.anytimemailbox.com/v1?your_api_key=6WRYmUvvc6gtOIdCg535riCW"}} at _throwForStatus (/var/task/node_modules/zapier-platform-core/src/http-middlewares/after/prepare-response.js:13:11) at outResp.throwForStatus (/var/task/node_modules/zapier-platform-core/src/http-middlewares/after/prepare-response.js:68:5) at throwForStatusMiddleware (/var/task/node_modules/zapier-platform-core/src/http-middlewares/after/throw-for-status.js:5:14) at Object.<anonymous> (/var/task/node_modules/zapier-platform-core/src/middleware.js:80:37) From previous event: at /var/task/node_modules/zapier-platform-core/src/middleware.js:77:26 at Array.reduce (<anonymous>) at afterMiddleware (/var/task/node_modules/zapier-platform-core/src/middleware.js:76:21) at Object.<anonymous> (/var/task/node_modules/zapier-platform-core/src/middleware.js:94:18) From previous event: at Object.<anonymous> (/var/task/node_modules/zapier-platform-core/src/middleware.js:92:10) From previous event: at /var/task/node_modules/zapier-platform-core/src/middleware.js:89:45 at /var/task/node_modules/zapier-platform-core/src/tools/create-lambda-handler.js:212:18 at bound (node:domain:433:15) at runBound (node:domain:444:12) at process.processImmediate (node:internal/timers:476:21) at process.topLevelDomainCallback (node:domain:161:15) at process.callbackTrampoline (node:internal/async_hooks:128:24) From previous event: at Domain.<anonymous> (/var/task/node_modules/zapier-platform-core/src/tools/create-lambda-handler.js:196:10) at Domain.run (node:domain:389:15) at Runtime.handler (/var/task/node_modules/zapier-platform-core/src/tools/create-lambda-handler.js:192:19) at Runtime.handleOnceNonStreaming (file:///var/runtime/index.mjs:1147:29)

 

 

Hi @mark.eaton ,

I noticed that the Test request is making a PUT to the base URL: https://connect.anytimemailbox.com/v1

However, from the documentation, it’s unclear to me if the base URL itself is a valid API endpoint, at least with the PUT method. 

Have you tried using another endpoint, perhaps the List Mailboxes endpoint?

https://docs.anytimemailbox.com/operator-api/#operation/ListMailboxes

For example, if you haven’t already, I might suggest trying a GET request to:

https://connect.anytimemailbox.com/v1/mailboxes

 


Thanks @connorz, that got the connection testing successfully. On to the next challenge, designing the Zap based on the API’s functionality.