Skip to main content

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

Body

required

    clientId stringrequired

    Your Port client ID

    clientSecret stringrequired

    Your Port client secret

Responses

Authorized successfully

Schema

    ok

    Possible values: [true]

    accessToken stringrequired
    expiresIn numberrequired

    The number of seconds until the access token expires

    tokenType stringrequired
Loading...