Access token

To retrieve your access token you can simply run the following API call with your System scope password. In case you want to retrieve your Event scope token, you must include the eventID query attribute and use your Event scope password.

curl --request POST \
     --url 'https://api.inevent.com/?action=person.signIn&username=YOUR_USERNAME_HERE' \
     --header 'Accept: application/json' \
     --header 'Content-Type: application/x-www-form-urlencoded' \
     --data password=YOUR_PASSWORD_HERE

Here is an example of response you will get if successful:

{
  "count": 1,
  "data": [
    {
      "personID": "1",
      "firstName": "Mauricio",
      "lastName": "Giordano",
      "name": "Mauricio Giordano",
      "username": "giordano@inevent.com",
      "email": "giordano@inevent.com",
      "image": "",
      "timezone": "",
      "telephone": "",
      "facebookID": "",
      "linkedInID": "",
      "twitterID": "",
      "date": "1593719050",
      "tokenID": "YOUR_TOKEN_HERE",
      "scope": "system",
      "targetID": "0"
    }
  ]
}

The tokenID value will be accessible through the following path: response["data"][0]["tokenID"].

Last updated