---
updatedAt: 2026-09-29T18:26:18.000Z
agentTools:
  projectIndex: https://docs.centaurlabs.com/llms.txt
---

# Invalidate the current token and return a new one

Invalidate the active token, then create and return a new one.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Centaur Authorization API",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://api.centaurlabs.com",
      "description": "Public API"
    }
  ],
  "paths": {
    "/auth/public/v1/refreshToken": {
      "post": {
        "tags": [
          "Refresh Token"
        ],
        "summary": "Invalidate the current token and return a new one",
        "description": "Invalidate the active token, then create and return a new one.",
        "operationId": "refresh_token_auth_public_v1_refreshToken_post",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefreshTokenResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MessageResponse"
                }
              }
            }
          },
          "403": {
            "description": "Country not served",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GeoRestrictedResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "GeoRestrictedResponse": {
        "properties": {
          "message": {
            "type": "string",
            "title": "Message",
            "examples": [
              "Centaur isn't available in your country. Based on your location, we're unable to provide access. Questions about eligibility? Email support@centaurlabs.com"
            ]
          },
          "code": {
            "type": "string",
            "title": "Code",
            "examples": [
              "restricted_country"
            ]
          }
        },
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "title": "GeoRestrictedResponse",
        "description": "The refusal a caller gets from a country the service does not serve.\n\nThe `code` is a stable marker, so a client tells this apart from any other refusal\nwithout a match on prose."
      },
      "MessageResponse": {
        "properties": {
          "message": {
            "type": "string",
            "title": "Message",
            "examples": [
              "Hello!"
            ]
          }
        },
        "type": "object",
        "required": [
          "message"
        ],
        "title": "MessageResponse",
        "description": "A one-line answer: a refusal, a greeting, or a closed session."
      },
      "RefreshTokenResponse": {
        "properties": {
          "token": {
            "type": "string",
            "title": "Token",
            "examples": [
              "344545656gffgfgfgfg"
            ]
          }
        },
        "type": "object",
        "required": [
          "token"
        ],
        "title": "RefreshTokenResponse"
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer"
      },
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-KEY"
      }
    }
  },
  "security": [
    {
      "bearerAuth": [],
      "ApiKeyAuth": []
    }
  ],
  "x-readme": {
    "apply-tag-changes": true
  }
}
```