Before you attempt to connect to our API you must first generate an Client ID and Client Secret. Log in to your LaserTask instance and go to Settings -> API. In there you can generate a new ID and Secret.
Once you have that make a CURL POST call to
https://[tenant].lasertask.com/oauth/token
Make sure you replace [tenant] with your tenant name.
The following fields are required as BODY Form data:
grant_type: password
client_id
client_secret
scope: *
username:
password:
The username and password should be the users’ information as used to log in to your instance. If sent correctly you will be supplied with a token and refresh_token. The token should be used as an ‘Authorization’ Header:
HEADERS Data
accept: application/json
Authorization: Bearer [token]