-
Notifications
You must be signed in to change notification settings - Fork 91
Description
I'd like to request a documentation update on how to perform authentication using the REST API, without using the JS client library. I apologize if it already exists and I just missed it, however, I couldn't find it.
Another request is to have a section in the documentation clearly for listing the REST API endpoints for easier reference. Initially I couldn't find the endpoints until I re-read the records section and it was located towards the middle amidst some other information. Alternatively, having a section that appears on the ToC would be helpful as well.
Great job on this tool, and I'm keeping an eye on this as another tool in my repertoire for speedy development. Cheers.
Edit 1
I figured out how to do this
- Using the /_/auth/login page, I figured out the url is
<url>/_/api/auth/v1/login
with the JSON parametersemail
andpassword
which will return a JSON response with theauth_token
andrefresh_token
.
{
"email": "your@email",
"password": "supersecretpassword"
}
I'm still figuring out how to send the the token with the header, I tried using Authorization
but no luck at the moment. Perhaps this can be added to the documentation, until then, hope this helps someone.
Edit 2:
Ok I figured out how to send the token as part of the header by reading the python client library. Use the Authorization
header with the value Bearer <auth_token>
, note the space between Bearer
and <auth_token>.