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
clientIdstringrequired
Your Port client ID
clientSecretstringrequired
Your Port client secret
Responsesโ
- 200
Authorized successfully
- application/json
- Schema
- Example (from schema)
Schema
ok
Possible values: [true
]
accessTokenstringrequired
expiresInnumberrequired
The number of seconds until the access token expires
tokenTypestringrequired
{
"accessToken": "string",
"expiresIn": 0,
"tokenType": "string"
}