Hi all, I need some very basic help that I can't s...
# kolide
r
Hi all, I need some very basic help that I can't seem to find the answer to in the docs. I'm trying to use the api and cant figure how to use my access token in a 
curl
  call or using python requests. What is the header for authentication called? I saw somewhere on github someone used 
curl -H Authorization: [tokenhere]
 but that didn't work for me
b
which API are you trying to use? if it is for fleet, you probably need to do something like:
curl -H "Authorization: Bearer <tokenhere>"
to specify the
type
in the standard
Authorization: <type> <credentials>
header
r
Fleet, yeah
Ohhh, the post I saw used
curl -H "Authorization: Bearer Token"
I thought I replace the whole
Bearer Token
part
I see now
I'll try it now. Thanks!
b
no problem!
r
It worked!
Thank you!
b
awesome, I remember being bitten by the same thing in the past for other APIs, glad that was the only issue