User Account

Refresh access token

Changed on

Get a new access token using a valid refresh token.

Usage:

  • Pass the refresh token as a Bearer token in the Authorization header
  • Returns a new access token and basic user information
  • The request body and query string are not read

Token Lifetimes:

  • Access token: 24 hours (configurable via ACCESS_TOKEN_EXPIRY environment variable)
  • Refresh token: 30 days (configurable via REFRESH_TOKEN_EXPIRY environment variable)

Best Practices:

  • Call this endpoint before the access token expires
  • Store the new access token and continue using it for authenticated requests
  • If refresh fails with 401, redirect user to login flow
post/userAccount/refresh/token

Request

  • Base URL
    https://app.pipeshub.com/api/v1
  • URL
    https://app.pipeshub.com/api/v1/userAccount/refresh/token
  • Auth
    HTTP bearer

Response

Token refreshed successfully

accessTokenstring required

New JWT access token (24 hour default expiry, configurable via ACCESS_TOKEN_EXPIRY)

Changes

    • info

      removed the non-success response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status