---
updatedAt: 2025-06-12T13:58:20.000Z
agentTools:
  projectIndex: https://developer.data.world/llms.txt
---

# Refresh service account token

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "contact": {
      "name": "Contact Us",
      "url": "https://data.world/company/contact-us"
    },
    "termsOfService": "https://data.world/terms-policies",
    "title": "data.world Public API",
    "version": "0"
  },
  "servers": [
    {
      "url": "https://api.data.world/v0"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "tags": [
    {
      "name": "serviceaccount"
    }
  ],
  "paths": {
    "/serviceaccount/{serviceAccount}/refresh": {
      "post": {
        "operationId": "refreshServiceAccountToken",
        "parameters": [
          {
            "in": "path",
            "name": "serviceAccount",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ServiceAccountRefreshTokenRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceAccountCreateResponseDto"
                }
              }
            },
            "description": "default response"
          }
        },
        "summary": "Refresh service account token",
        "tags": [
          "serviceaccount"
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "ServiceAccountCreateResponseDto": {
        "type": "object",
        "properties": {
          "active": {
            "type": "string"
          },
          "serviceAccountUsername": {
            "type": "string"
          },
          "token": {
            "type": "string"
          }
        }
      },
      "ServiceAccountRefreshTokenRequestDto": {
        "type": "object",
        "properties": {
          "expiryDate": {
            "type": "string",
            "format": "date-time"
          }
        }
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "bearerFormat": "JWT",
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "jsonSchemaDialect": "https://spec.openapis.org/oas/3.1/dialect/base"
}
```