cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
924
Views
1
Helpful
1
Replies

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

bemar
Level 1
Level 1

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

1 Accepted Solution

Accepted Solutions

bemar
Level 1
Level 1

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

View solution in original post

1 Reply 1

bemar
Level 1
Level 1

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

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links