---
updatedAt: 2025-11-05T21:23:19.000Z
agentTools:
  projectIndex: https://developer.sivo.com/llms.txt
---

# Exchange Refresh for Access Token

Get a new access_token with a refresh_token from https://app.sivo.com/integrations

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "authentication-api",
    "version": "1.2"
  },
  "servers": [
    {
      "url": "https://auth.sivo.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "http",
        "scheme": "basic"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/oauth2/token": {
      "post": {
        "summary": "Exchange Refresh for Access Token",
        "description": "Get a new access_token with a refresh_token from https://app.sivo.com/integrations",
        "operationId": "refresh-an-access-token",
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "required": [
                  "refresh_token",
                  "grant_type",
                  "client_id"
                ],
                "properties": {
                  "refresh_token": {
                    "type": "string",
                    "description": "A valid refresh_token"
                  },
                  "grant_type": {
                    "type": "string",
                    "default": "refresh_token"
                  },
                  "client_id": {
                    "type": "string",
                    "description": "The application Client ID"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"id_token\": \"<ID_TOKEN>\",\n    \"access_token\": \"<NEW_ACCESS_TOKEN>\",\n    \"expires_in\": 3600,\n    \"token_type\": \"Bearer\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "id_token": {
                      "type": "string",
                      "example": "<ID_TOKEN>"
                    },
                    "access_token": {
                      "type": "string",
                      "example": "<NEW_ACCESS_TOKEN>"
                    },
                    "expires_in": {
                      "type": "integer",
                      "example": 3600,
                      "default": 0
                    },
                    "token_type": {
                      "type": "string",
                      "example": "Bearer"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false,
        "security": [],
        "x-readme": {
          "code-samples": [
            {
              "language": "curl",
              "code": "curl --request POST 'https://auth.sivo.com/oauth2/token' \\\n--header 'Content-Type: application/x-www-form-urlencoded' \\\n--data-urlencode 'client_id=:client_id' \\\n--data-urlencode 'grant_type=refresh_token' \\\n--data-urlencode 'refresh_token=:refresh_token'"
            }
          ],
          "samples-languages": [
            "curl"
          ]
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": false
  },
  "x-readme-fauxas": true
}
```