Obtain API token
For obtaining an API token for profiles, send a POST
request to the endpoint:
https://webapi.inboxroad.com/api/token/
There is also interactive version where you can try out sending requests.
The payload for the request should be a JSON of the following type:
{ "username": "string", "password": "string"}
All fields are required!
Examples
curl --location --request POST 'https://webapi.inboxroad.com/api/token/' \--header 'Content-Type: application/json' \--data-raw '{"username": "test@test.test","passowrd": "etesttes"}'
import requestsimport json
url = "https://webapi.inboxroad.com/api/token/"
payload = {"username": "test@test.test", "password": "etestetst"}
response = requests.post(url, json=payload)
print(response.text)
<?php$client = new http\Client;$request = new http\Client\Request;
$request->setRequestUrl('https://webapi.inboxroad.com/api/token/');$request->setRequestMethod('POST');
$body = new http\Message\Body;$body->append('{"username": "test@test.test","passowrd": "etesttes"}');
$request->setBody($body);$request->setOptions(array());$request->setHeaders(array('Content-Type' => 'application/json'));$client->enqueue($request)->send();$response = $client->getResponse();echo $response->getBody();>
require "uri"require "net/http"
url = URI("https://webapi.inboxroad.com/api/token/")
https = Net::HTTP.new(url.host, url.port)https.use_ssl = true
request = Net::HTTP::Post.new(url)request["Content-Type"] = "application/json"request.body = "{\n \"username\": \"test@test.test\",\n \"passowrd\": \"etesttes\"\n}"
response = https.request(request)puts response.read_body