---
title: "Refresh Access Token"
url: "https://nov18-dev.movespot.fyi/apis/portal-authentication-2/versions/3cc44fe2-52b6-4e2c-af99-881b37b2d4b0/operations/refresh"
---

> Full API specification: https://nov18-dev.movespot.fyi/apis/portal-authentication-2/versions/3cc44fe2-52b6-4e2c-af99-881b37b2d4b0.md

# Refresh Access Token

`POST` `/api/v2/developer/refresh`

Operation ID: `refresh`

This endpoint allows a developer to refresh their existing access token.

## Responses

- `204` - No Content
- `401` - Unauthorized

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Portal Authentication
  version: 2.0.0
paths:
  /api/v2/developer/refresh:
    post:
      operationId: refresh
      summary: Refresh Access Token
      description: This endpoint allows a developer to refresh their existing access token.
      responses:
        "204":
          description: No Content
          headers:
            Set-Cookie:
              schema:
                type: string
                example: >
                  portalaccesstoken=access12345; Path=/;
                  Domain=example.us.portal.konghq.com; Expires=Thu, 20 Jul 2023
                  12:00:00 GMT; HttpOnly; Secure; SameSite=None

                  portalrefreshtoken=refresh12345; Path=/v2/refresh;
                  Domain=example.us.portal.konghq.com; Expires=Thu, 20 Jul 2023
                  12:00:00 GMT; HttpOnly; Secure; SameSite=None
        "401":
          $ref: "#/components/responses/responses-Unauthorized"
      tags:
        - developer
components:
  responses:
    responses-Unauthorized:
      description: Unauthorized
      content:
        application/problem+json:
          schema:
            $ref: "#/components/schemas/UnauthorizedError"
          examples:
            UnauthorizedExample:
              $ref: "#/components/examples/UnauthorizedExample"
  schemas:
    UnauthorizedError:
      allOf:
        - $ref: "#/components/schemas/BaseError"
        - type: object
          properties:
            status:
              example: 401
            title:
              example: Unauthorized
            type:
              example: https://httpstatuses.com/401
            instance:
              example: kong:trace:1234567890
            detail:
              example: Invalid credentials
    BaseError:
      description: standard error
      type: object
      properties:
        status:
          description: >
            The HTTP status code of the error. Useful when passing the response

            body to child properties in a frontend UI. Must be returned as an
            integer.
          type: integer
          readOnly: true
        title:
          description: |
            A short, human-readable summary of the problem. It should not
            change between occurences of a problem, except for localization.
            Should be provided as "Sentence case" for direct use in the UI.
          type: string
          readOnly: true
        type:
          description: The error type.
          type: string
          readOnly: true
        instance:
          description: |
            Used to return the correlation ID back to the user, in the format
            kong:trace:<correlation_id>. This helps us find the relevant logs
            when a customer reports an issue.
          type: string
          readOnly: true
        detail:
          description: >
            A human readable explanation specific to this occurence of the
            problem.

            This field may contain request/entity data to help the user
            understand

            what went wrong. Enclose variable values in square brackets. Should
            be

            provided as "Sentence case" for direct use in the UI.
          type: string
          readOnly: true
      required:
        - status
        - title
        - instance
        - detail
      title: Error
  examples:
    UnauthorizedExample:
      value:
        status: 401
        title: Unauthorized
        instance: kong:trace:8347343766220159418
        detail: Unauthorized
```
