D
Dokploy3mo ago
Hankz

API keys per organization is not working

curl -X 'GET' \
'https://<MY DOMAIN>/api/project.all' \
-H 'accept: application/json'
-H 'Authorization: Bearer <REGENERATED APIKEY>'
curl -X 'GET' \
'https://<MY DOMAIN>/api/project.all' \
-H 'accept: application/json'
-H 'Authorization: Bearer <REGENERATED APIKEY>'
Putting the regenerated API key into the authorization always results in an 'Unauthorized' response.
2 Replies
Siumauricio
Siumauricio3mo ago
Hey you need to use the x-api-key header I need to update the docs and the CLI
Hankz
HankzOP3mo ago
yeah it works, using x-api-key: <REGENERATED APIKEY> . thx

Did you find this page helpful?