Title
#kolide
r

Reece Rodriguez

06/24/2020, 3:07 PM
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

blaedj

06/24/2020, 3:38 PM
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

Reece Rodriguez

06/24/2020, 3:38 PM
Fleet, yeah
3:39 PM
Ohhh, the post I saw used
curl -H "Authorization: Bearer Token"
3:40 PM
I thought I replace the whole
Bearer Token
part
3:40 PM
I see now
3:40 PM
I'll try it now. Thanks!
b

blaedj

06/24/2020, 3:40 PM
no problem!
r

Reece Rodriguez

06/24/2020, 3:43 PM
It worked!
3:43 PM
Thank you!
b

blaedj

06/24/2020, 3:44 PM
awesome, I remember being bitten by the same thing in the past for other APIs, glad that was the only issue