Total Parks Tokens API

The Tokens API from Total Parks — 4 operation(s) for tokens.

GitHub OpenAPI

Operations 6

GET /user/me/tokens List User Tokens #
POST /user/me/tokens Create User Token #
PATCH /user/me/tokens/{token_id} Update User Token #
DELETE /user/me/tokens/{token_id} Revoke User Token #
GET /user/me/oauth-grants List Grants #
DELETE /user/me/oauth-grants/{grant_id} Revoke Grant #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/totalparks-com-au:totalparks-com-au-tokens-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

totalparks-com-au-tokens-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Total Parks Public Tokens API
  description: 'Total Parks public API for park discovery, availability, carts, trips, and bookings. Agents should prefer the MCP connector for park Q&A, pet and rig checks, and planning calendars.


    ## Versioning and deprecation


    The current public REST surface is major version 1. Unversioned URL paths (/carts, /properties, and other existing routes) are v1.


    Send optional header `API-Version: 1`, or omit the header. Both select v1. An unknown major returns HTTP 400 with application/problem+json.


    Additive, backward-compatible changes stay on v1. Breaking changes require a new major version.


    When an operation is retired it is marked `deprecated: true` in this document. Responses then include RFC 9745 `Deprecation: @`, RFC 8594 `Sunset: `, and `Link` with `rel="deprecation"`. Deprecated operations remain available for at least 90 days after Sunset is first advertised. The current v1 surface is not deprecated.


    ## Rate limits


    Responses carry the IETF RateLimit fields (draft-ietf-httpapi-ratelimit-headers). `RateLimit-Policy` names each quota policy with its quota `q` and window `w` in seconds. `RateLimit` gives the remaining quota `r` and the seconds `t` until the window resets, for example `RateLimit-Policy: "default";q=300;w=60` and `RateLimit: "default";r=297;t=42`.


    The `default` policy is an API-wide budget per caller: anonymous callers are counted per client IP, and PAT or OAuth callers per token. Cart, auth, and booking operations add a tighter `endpoint` policy. When a policy is exceeded the API may answer HTTP 429 with `Retry-After` in seconds. Wait that long before retrying, and pace requests so `r` stays above zero. The policy values are hints, not a service guarantee.'
  version: 1.0.0
servers:
- url: https://api.totalparks.com.au
  description: Total Parks Public API
tags:
- name: Tokens
paths:
  /user/me/tokens:
    get:
      tags:
      - Tokens
      summary: List User Tokens
      description: List all PATs for the authenticated user (secrets never included).
      operationId: list_user_tokens_user_me_tokens_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/PATResponse'
                type: array
                title: Response List User Tokens User Me Tokens Get
      security:
      - oauth2:
        - tokens:manage
      - HTTPBearer:
        - tokens:manage
      parameters:
      - $ref: '#/components/parameters/ApiVersion'
    post:
      tags:
      - Tokens
      summary: Create User Token
      description: Create a new PAT. The plaintext token is returned once.
      operationId: create_user_token_user_me_tokens_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PATCreateRequest'
        required: true
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PATCreateResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - oauth2:
        - tokens:manage
      - HTTPBearer:
        - tokens:manage
      parameters:
      - $ref: '#/components/parameters/ApiVersion'
  /user/me/tokens/{token_id}:
    patch:
      tags:
      - Tokens
      summary: Update User Token
      description: Rename or change scopes of a PAT.
      operationId: update_user_token_user_me_tokens__token_id__patch
      security:
      - oauth2:
        - tokens:manage
      - HTTPBearer:
        - tokens:manage
      parameters:
      - name: token_id
        in: path
        required: true
        schema:
          type: integer
          title: Token Id
      - $ref: '#/components/parameters/ApiVersion'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PATUpdateRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PATResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - Tokens
      summary: Revoke User Token
      description: Revoke (soft-delete) a PAT.
      operationId: revoke_user_token_user_me_tokens__token_id__delete
      security:
      - oauth2:
        - tokens:manage
      - HTTPBearer:
        - tokens:manage
      parameters:
      - name: token_id
        in: path
        required: true
        schema:
          type: integer
          title: Token Id
      - $ref: '#/components/parameters/ApiVersion'
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /user/me/oauth-grants:
    get:
      tags:
      - Tokens
      summary: List Grants
      description: List the authenticated user's active OAuth grants (connected apps).
      operationId: list_grants_user_me_oauth_grants_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/OAuthGrantResponse'
                type: array
                title: Response List Grants User Me Oauth Grants Get
      security:
      - oauth2:
        - tokens:manage
      - HTTPBearer:
        - tokens:manage
      parameters:
      - $ref: '#/components/parameters/ApiVersion'
  /user/me/oauth-grants/{grant_id}:
    delete:
      tags:
      - Tokens
      summary: Revoke Grant
      description: Revoke an OAuth grant and all tokens issued to that app.
      operationId: revoke_grant_user_me_oauth_grants__grant_id__delete
      security:
      - oauth2:
        - tokens:manage
      - HTTPBearer:
        - tokens:manage
      parameters:
      - name: grant_id
        in: path
        required: true
        schema:
          type: integer
          title: Grant Id
      - $ref: '#/components/parameters/ApiVersion'
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    PATCreateResponse:
      properties:
        id:
          type: integer
          title: Id
        name:
          type: string
          title: Name
        scopes:
          items:
            type: string
          type: array
          title: Scopes
        token:
          type: string
          title: Token
          description: Plaintext token — store securely, shown only once
        expires_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Expires At
        created_at:
          type: string
          format: date-time
          title: Created At
      type: object
      required:
      - id
      - name
      - scopes
      - token
      - created_at
      title: PATCreateResponse
      description: Returned once at creation — the only time the plaintext secret is visible.
    PATResponse:
      properties:
        id:
          type: integer
          title: Id
        name:
          type: string
          title: Name
        scopes:
          items:
            type: string
          type: array
          title: Scopes
        expires_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Expires At
        last_used_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Last Used At
        revoked_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Revoked At
        created_at:
          type: string
          format: date-time
          title: Created At
      type: object
      required:
      - id
      - name
      - scopes
      - created_at
      title: PATResponse
      description: Listed token — secret is never included.
    PATUpdateRequest:
      properties:
        name:
          anyOf:
          - type: string
            maxLength: 100
          - type: 'null'
          title: Name
        scopes:
          anyOf:
          - items:
              type: string
            type: array
          - type: 'null'
          title: Scopes
      type: object
      title: PATUpdateRequest
    PATCreateRequest:
      properties:
        name:
          type: string
          maxLength: 100
          title: Name
          description: User-chosen label, e.g. 'My Cursor agent'
        scopes:
          items:
            type: string
          type: array
          minItems: 1
          title: Scopes
          description: Scopes to grant, e.g. ['carts:write','bookings:read']
        expires_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Expires At
          description: Optional expiry; null means never
      type: object
      required:
      - name
      - scopes
      title: PATCreateRequest
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    OAuthGrantResponse:
      properties:
        id:
          type: integer
          title: Id
        client_id:
          type: string
          title: Client Id
        client_name:
          type: string
          title: Client Name
        client_logo_url:
          anyOf:
          - type: string
          - type: 'null'
          title: Client Logo Url
        scopes:
          items:
            type: string
          type: array
          title: Scopes
        created_at:
          type: string
          format: date-time
          title: Created At
        last_used_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Last Used At
      type: object
      required:
      - id
      - client_id
      - client_name
      - scopes
      - created_at
      title: OAuthGrantResponse
      description: A connected OAuth application from the user's perspective.
  parameters:
    ApiVersion:
      name: API-Version
      in: header
      required: false
      description: Major API version. Omit or send 1 for the current v1 surface. Retired operations use RFC 9745 Deprecation and RFC 8594 Sunset headers.
      schema:
        type: string
        enum:
        - '1'
        default: '1'
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer
      description: Operations that list scopes accept a personal access token (tp_pat_...) carrying those scopes, or a signed-in session token. Signed-in users create personal access tokens, and choose their scopes, at https://totalparks.com.au/account/tokens. Operations that list no scopes expect a signed-in session token.
    oauth2:
      type: oauth2
      description: 'OAuth 2.0 Authorization Code flow. PKCE with S256 is required. Authorization server metadata (RFC 8414): https://api.totalparks.com.au/.well-known/oauth-authorization-server. Protected resource metadata (RFC 9728): https://api.totalparks.com.au/.well-known/oauth-protected-resource. Request only the scopes the operation lists.'
      flows:
        authorizationCode:
          authorizationUrl: https://api.totalparks.com.au/oauth/authorize
          tokenUrl: https://api.totalparks.com.au/oauth/token
          refreshUrl: https://api.totalparks.com.au/oauth/token
          scopes:
            bookings:read: View your booking history and booking details
            carts:write: Create, modify, prepare, and confirm carts on your behalf
            mcp:read: Read public Total Parks MCP property facts and stay assessments
            tokens:manage: Create, list, rename, and revoke your personal access tokens
            trips:read: View your saved trips
            trips:write: Create, change, and delete your saved trips
    cartToken:
      type: http
      scheme: bearer
      description: Guest cart token (tp_cart_...) returned by POST /carts. It opens one cart only and is not an OAuth access token.