api-client-python icon indicating copy to clipboard operation
api-client-python copied to clipboard

{ "message": "API Key not set", "success": false, "data": null }

Open ghost opened this issue 2 years ago • 1 comments

Sending Profile Not working - Says API key Not Set

ghost avatar Oct 04 '22 10:10 ghost

Same issue here. Passing the api_key in the headers, and getting { "message": "API Key not set", "success": false, "data": null }

EDIT: I found the issue. The documentation is not very clear on how to format the API key in the headers, but it's clear for URI-based API keys. I'd recommend just adding a quick example to GitBook for header-based authentication like: 'Authorization' = "Bearer $goPhishApiKey" or an example with curl + header authentication

HappyEarthDay avatar Aug 27 '24 14:08 HappyEarthDay