Admin-API - Problem creating request for user delete - HMAC

Hello,

I have problems to sign a request with HMAC for the user delete endpoint in the admin api.
The endpoint to create users is working well.

The difference seems to be the parameters. While I have parameters in the create request I have no params in the user delete request which seems to result in a wrong signing, because I’m getting error 40103 “Invalid signature in request credentials”

The request to sign is:

Mon, 06 Sep 2021 14:53:46 +0200
DELETE
■■■■■■■■■■■■■■■■■■■■■■■■■■■■
/admin/v1/users/DUGTEXN2WBAHLD7J8EI

Is this correct?

Any help is appreciated.

Best regards

Benjamin

Ok, found the problem.

For all the guys being frustrated about the same issue:

You have to insert an extra empty line with a Line Feed for having no params.

The right request is:

Mon, 06 Sep 2021 14:53:46 +0200
DELETE
http://■■■■■■■■■■■■■■■■■■■■■■■■■■■■/
/admin/v1/users/DUGTEXN2WBAHLD7J8EI
<---- LineFeed

1 Like