Authentication / Authorization

Create an 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.<br/><br/>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.

post/v1/auth/access_token

Request

  • Base URL: https://api.port.io
  • URL: https://api.port.io/v1/auth/access_token
  • Auth: API key in header Authorization

Request body

clientIdstring required

Your Port client ID

clientSecretstring required

Your Port client secret

Response

Authorized successfully

okunknown
accessTokenstring required
expiresInnumber required

The number of seconds until the access token expires

tokenTypestring required

Changes

No recorded changes to this operation across all 1 revision of this API.