API/Strategy API Call trouble

Hey all,

I'm struggling a bit with formatting an API call. I got this to work in Swagger but having trouble with the call in my browser. I have a JSON plug in in chrome that formats API responses that are in JSON format.

Anyway, here is my call to the Strategy endpoint (I've put my apId and apiKey in xxx):

https://api.portfolio123.com/strategy/1749358?apiId=xxx&apiKey=xxx

I get an access denied response.

Is this because there is no permanent token and I first need to uses /auth to get a token before making the /Strategy call, or is my format wrong?

Thanks.

Paul

In order to use any API endpoint, an access token needs to be acquired via the /auth endpoint first, POST /auth {"authId":xxx,"apiKey":"xxx"}. It will send back the access token with an X-Expires-In header so you know when it expires, (you are encouraged to reuse that token for that many seconds after acquisition). Provide the Token header for authorized calls to endpoints such as GET /strategy/{id}.

The API doesn't really support browser consumption as most endpoints require the POST method and the Token header.

Let me know if there's anything else I can help with here.

Got it. Thanks.