Authentication
How to test your credentials and make the most of this portal
Authentication
The API consumer must have an API key and an API secret to authenticate requests. VTS will provide these credentials to authorized API consumers.
To authenticate a request, use the API Key and API Secret as the username and password, respectively, for the requestβs Authorization header.
You can test authorization with the following code:
curl -u <API Key>:<API Secret> https://api.vts.com/api/connect/v1
curl -u <API Key>:<API Secret> https://sandbox.vts.com/api/connect/v1
Make sure to replace and with your API key and API Secret, respectively.
The above command returns XML as shown below. The Authorized tag will be true if the credentials are valid and false otherwise:
<?xml version="1.0" encoding="UTF-8"?>
<Connect>
<ID>166</ID>
<Authorized>true</Authorized>
</Connect>
HTTP Basic: Access denied.
This document is proprietary and confidential. No part of this document may be disclosed in any manner to a third party without the prior written consent of View the Space Inc.
Updated over 1 year ago