Using http node for D-ID - Authorization problem

Hey there,

I’d like to use the API of D-ID within n8n. Some users seem to have managed it, but I just can’t find a way to get the authorization working.

The basic authorization in D-ID is described here:

Within the http Request node I think this set up is needed

as I saw in a solved problem here (How to build a Polling Loop?).

I already tried that with the followind credentials:

  • Using my D-ID username as User and the API key as Password
  • Using just the API key as both
  • Using the base64 encrypted version of my API key the same two ways as above

Also tried various forms of sending a header. The one I thought was in line with the documentation of D-ID was:

  • Generic Auth type: Basic Auth
  • Credential with username/password for D-ID
  • Send header, Specify Headers as “using fields below”
  • Header parameters: Name: Authorization / Value: API-key

That fails as well. According to the solved problem of @Sebastian_Irmer in this community that doesn’t seem to be necessary, but I can’t figure out what the D-ID API needs instead.

Can anyone help me with this please? Thanks a lot in advance!

Cheers
Jan

I found their API key document is somehow not matched with current status

Created the API Key in this place.

Let’s say it generated aaaaaa

And using n8n header auth with
name : Authorization
value : Basic aaaaaa (remembe the space between Basic and key)

This works for me.

2 Likes

Hi Darrell,

Thanks a lot for your fast answer and working solution!

Interestingly I also made it working with their cURL code now:

This uses regular user/pw as credential but sends the API within the header in contrast to your solution - and works as well. Maybe the point was more the field “Accept: application/json”.

I am somehow still confused but so happy it works. Thanks again for your support!

Cheers

1 Like