Product SiteDocumentation Site

1.2. Authentication

redborder Rest API uses an Access Key generated with the Web Graphical Interface. Click on the specific user properties and gerenate an Acces Key code. For example:
             The user: admin@cisco.com has the Access Key: M4X5c4xhwYbPZ3s5xzHU
This option must be included into the URL:
             https://hostname/api/data?auth_token=M4X5c4xhwYbPZ3s5xzHU
Every query to the REST api must have this Access Key present and the query will have the user permisions belongs the key.
The rest of params must be provided by the POST payload data. The format of the payload must be JSON as we saw in the previous example. For example if we save the last query in a file called data.body, we can do a simple query like this:
curl --insecure -X POST 'https://hostname/api/data?auth_token=M4X5c4xhwYbPZ3s5xzHU' -H 'content-type: application/json' -d @data.body