Captain Cloud API
Authentication
You'll need an access token to use the Captain API.
To authenticate, pass an Authorization
header in your HTTP request with the value set to Bearer your-token-here
.
Assuming you have an environment variable set named RWX_ACCESS_TOKEN
:
curl \
--header "Authorization: Bearer $RWX_ACCESS_TOKEN" \
https://cloud.rwx.com/captain/api/...
You can test your credentials by calling the whoami
endpoint.
curl \
--header "Authorization: Bearer $RWX_ACCESS_TOKEN" \
https://cloud.rwx.com/api/auth/whoami
Debugging
You may want to add --dump-header /dev/stderr
to your curl
command to see the response headers from the server.
We'd be happy to help with any problems – get in touch.