Byelabel Api
    Byelabel Api
    • Me
      GET
    • Login
      POST
    • Refresh Token
      POST
    • Balance
      GET
    • Carrier List
      GET
    • Country List
      GET
    • State/Province List
      GET
    • State & City From Postal Code
      POST
    • Get Carrier Rates
      POST
    • Create Shipment (Label)
      POST
    • Schemas
      • Fail Result Schema
      • Success Result Schema
      • HTTP Error Schema
      • Tax Identifiers Schema
      • Weight Schema
      • Dimensions Schema
      • Sender Schema
      • Recipient Schema
      • Package Schema
      • Package Line Items Schema
      • Product Options Schema
      • Invoice Schema
      • Printing Options Schema
      • Order Schema
      • Carrier Rate Result Schema
      • Created Shipment Result Schema
      • Document To Print
      • Country Schema
      • State / Province Schema
      • Carrier Schema

      Refresh Token

      POST
      /refresh-token
      Refreshing endpoint for the expired tokens

      Request

      Header Params

      Body Params application/json

      Examples

      Responses

      🟢200Success
      application/json
      Response after client id and secret is true
      Body

      🟢200Error
      🔴500Server Error Response
      Request Request Example
      Shell
      JavaScript
      Java
      Swift
      curl --location --request POST 'https://api.byelabel.com/v1/refresh-token' \
      --header 'X-Workspace-Id: ' \
      --header 'Content-Type: application/json' \
      --data-raw '{
          "token": ""
      }'
      Response Response Example
      200 - Example 1
      {
          "success": true,
          "payload": {
              "id": "string",
              "access": {
                  "token": "string",
                  "expires_in": 0
              },
              "refresh": {
                  "token": "string",
                  "expires_in": 0
              }
          },
          "transaction": {
              "id": "string",
              "response_time": 0
          }
      }
      Modified at 2026-02-08 01:37:07
      Previous
      Login
      Next
      Balance
      Built with