Antsle Forum

Welcome to our Antsle community! This forum is to connect all Antsle users to post experiences, make user-generated content available for the entire community and more. 

Please note: This forum is about discussing one specific issue at a time. No generalizations. No judgments. Please check the Forum Rules before posting. If you have specific questions about your Antsle and expect a response from our team directly, please continue to use the appropriate channels (email: [email protected]) so every inquiry is tracked. 

Please or Register to create posts and topics.

Not Authorized Error with API

I've been working with the API for sometime now and it has worked perfectly, however, recently (in the past two months or so) the API is giving me a 'Not Authorized' error whenever I try to access the API.  I've tried via the command line and through the Swagger-UI.  My command is simple (see below).  Just trying to get a list of antlets.

My suggestion

curl -X GET --header 'Accept: application/octet-stream' --header 'Authorization: eyJhb.......' 'http://myantsle.local:3000/api/antlets'

Not authorized

 

Tagging @mpbaum, our API ant king

tliddle30 has reacted to this post.
tliddle30

Hey @tliddle30!

You need to use the word `Token ` in your Authentication header along with the actual JWT. So your request should look something like this:

```

curl -X GET --header 'Accept: application/octet-stream' --header 'Authorization: Token eyJhb.......' 'http://myantsle.local:3000/api/antlets'

```

 

Let me know how that goes. Best, Marc

tliddle30 has reacted to this post.
tliddle30

Yep - I totally missed that.  DUH!

Thanks!