API Token
Get API Token request
API Method
Data Structure
Field name | Data Type | Field description |
userEmail | string | The user email |
password | string | password |
API Token Response
Response code 200 will contain a JSON file with the following token key and token value
Field name | Data Type | Field description |
token | String | API token String |
Example of response:
Error Message
Error code | Reason |
401-Unauthorized | Wrong user e-mail or wrong password |
401-Unauthorized | Token validity expired – need to refresh the token |
403- Forbidden | Unauthorized scope request |
Sample Code
Postman
CURL
curl --location --request POST 'https://developers.3dsignals.io/api/v1/security/getAPIToken' \ --header 'Content-Type: application/json' \ --data-raw '{ "userEmail": "******@3dsignals.com", "password": "*****" }'
python
import requests url = "https://developers.3dsignals.io/api/v1/security/getAPIToken" payload="{\n \"userEmail\": \"******@3dsignals.com\",\n \"password\": \"*****\"\n}" headers = { 'Content-Type': 'application/json' } response = requests.request("POST", url, headers=headers, data=payload) print(response.text)