Create an access token
POST/v1/auth/access_token
This route allows you to create an access token for your Port account. You can use this token to authenticate your requests to the Port API.
To obtain your client ID and client secret, go to your Port application, click on the ...
button in the top right corner, then click Credentials
.
Request
- application/json
Body
required
clientId stringrequired
Your Port client ID
clientSecret stringrequired
Your Port client secret
Responses
- 200
Authorized successfully
- application/json
- Schema
- Example (from schema)
Schema
ok
Possible values: [true
]
accessToken stringrequired
expiresIn numberrequired
The number of seconds until the access token expires
tokenType stringrequired
{
"accessToken": "string",
"expiresIn": 0,
"tokenType": "string"
}
Loading...