Question

Discord API call

  • 21 April 2022
  • 5 replies
  • 103 views

Hey folks,

Assuming that I have a Zapier bot in my server, is there a way to use Zapier’s Webhooks action to perform an authorized call on Discord API?

Asking because current Discord Action to Find User will only return one record, even if there are multiple users with the same nickname in the guild. An API call on Search Users endpoint will return all records that match the nickname query, which I’d then be able to dump into a lookup table and filter on discriminators.

Cheers,

Evgeny


This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

5 replies

Userlevel 7
Badge +14

Hi @evgeny_d1c 

Good question.

The Webhooks app has these available actions to use with app APIs:

 

Hey,

Of course. The question is how to handle Discord authorisation. I tried querying their API endpoints in a Webhooks zap - only to get a message that I was not authorised.

 

Cheers,

Evgeny

Userlevel 7
Badge +14

@evgeny_d1c 

Looks like Discord uses OAuth2 for authentication per their API docs: https://discord.com/developers/docs/topics/oauth2

Is there a way to use Zapier’s Webhooks action to query an end-point that requires OAuth2? Without building my own app in Zapier (I’m not a developer) that is.

 

Querying with Bearer tokens is straightforward (for me) using the Webhooks action. OAuth2 - this is where I stumble.

 

Cheers,

Evgeny

Userlevel 7
Badge +14

@evgeny_d1c 

Not currently, but there may be in the near future.

 

Until then, consider hiring help from a Zapier Expert: https://zapier.com/experts