Total Parks OAuth API

The OAuth API from Total Parks — 5 operation(s) for oauth.

GitHub OpenAPI

Operations 6

GET /oauth/authorize Authorize Redirect #
POST /oauth/authorize Authorize Decision #
GET /oauth/authorize/metadata Authorize Metadata #
POST /oauth/token Token Endpoint #
POST /oauth/revoke Revoke Endpoint #
POST /oauth/introspect Introspect Endpoint #

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-oauth-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-oauth-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Total Parks Public OAuth 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: OAuth
paths:
  /oauth/authorize:
    get:
      tags:
      - OAuth
      summary: Authorize Redirect
      description: Validate the authorize request and redirect to the consent UI.
      operationId: authorize_redirect_oauth_authorize_get
      parameters:
      - name: response_type
        in: query
        required: true
        schema:
          type: string
          title: Response Type
      - name: client_id
        in: query
        required: true
        schema:
          type: string
          title: Client Id
      - name: redirect_uri
        in: query
        required: true
        schema:
          type: string
          title: Redirect Uri
      - name: scope
        in: query
        required: false
        schema:
          type: string
          default: ''
          title: Scope
      - name: state
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: State
      - name: code_challenge
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Code Challenge
      - name: code_challenge_method
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Code Challenge Method
      - $ref: '#/components/parameters/ApiVersion'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    post:
      tags:
      - OAuth
      summary: Authorize Decision
      description: User grants or denies the OAuth request. Requires session auth.
      operationId: authorize_decision_oauth_authorize_post
      security:
      - HTTPBearer: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AuthorizeDecisionRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      parameters:
      - $ref: '#/components/parameters/ApiVersion'
  /oauth/authorize/metadata:
    get:
      tags:
      - OAuth
      summary: Authorize Metadata
      description: Return the consent request metadata for the frontend consent page.
      operationId: authorize_metadata_oauth_authorize_metadata_get
      parameters:
      - name: request_id
        in: query
        required: true
        schema:
          type: string
          title: Request Id
      - $ref: '#/components/parameters/ApiVersion'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthorizeMetadataResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /oauth/token:
    post:
      tags:
      - OAuth
      summary: Token Endpoint
      description: Token endpoint — exchange code or refresh.
      operationId: token_endpoint_oauth_token_post
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/Body_token_endpoint_oauth_token_post'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TokenResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      parameters:
      - $ref: '#/components/parameters/ApiVersion'
  /oauth/revoke:
    post:
      tags:
      - OAuth
      summary: Revoke Endpoint
      description: RFC 7009 token revocation. Always returns 200 per spec.
      operationId: revoke_endpoint_oauth_revoke_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RevokeRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      parameters:
      - $ref: '#/components/parameters/ApiVersion'
  /oauth/introspect:
    post:
      tags:
      - OAuth
      summary: Introspect Endpoint
      description: RFC 7662 token introspection. Admin-gated.
      operationId: introspect_endpoint_oauth_introspect_post
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/Body_introspect_endpoint_oauth_introspect_post'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IntrospectResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
      parameters:
      - $ref: '#/components/parameters/ApiVersion'
components:
  schemas:
    RevokeRequest:
      properties:
        token:
          type: string
          title: Token
        token_type_hint:
          anyOf:
          - type: string
          - type: 'null'
          title: Token Type Hint
      type: object
      required:
      - token
      title: RevokeRequest
    TokenResponse:
      properties:
        access_token:
          type: string
          title: Access Token
        token_type:
          type: string
          title: Token Type
          default: Bearer
        expires_in:
          type: integer
          title: Expires In
          description: Access token lifetime in seconds
        refresh_token:
          anyOf:
          - type: string
          - type: 'null'
          title: Refresh Token
        scope:
          type: string
          title: Scope
          description: Space-delimited granted scopes
      type: object
      required:
      - access_token
      - expires_in
      - scope
      title: TokenResponse
      description: RFC 6749 token endpoint response.
    IntrospectResponse:
      properties:
        active:
          type: boolean
          title: Active
        scope:
          anyOf:
          - type: string
          - type: 'null'
          title: Scope
        client_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Client Id
        username:
          anyOf:
          - type: string
          - type: 'null'
          title: Username
        token_type:
          anyOf:
          - type: string
          - type: 'null'
          title: Token Type
        exp:
          anyOf:
          - type: integer
          - type: 'null'
          title: Exp
        iat:
          anyOf:
          - type: integer
          - type: 'null'
          title: Iat
        sub:
          anyOf:
          - type: string
          - type: 'null'
          title: Sub
      type: object
      required:
      - active
      title: IntrospectResponse
      description: RFC 7662 introspection response.
    AuthorizeDecisionRequest:
      properties:
        request_id:
          type: string
          title: Request Id
        decision:
          type: string
          pattern: ^(grant|deny)$
          title: Decision
      type: object
      required:
      - request_id
      - decision
      title: AuthorizeDecisionRequest
      description: Posted by the consent page to grant or deny.
    Body_introspect_endpoint_oauth_introspect_post:
      properties:
        token:
          type: string
          title: Token
      type: object
      required:
      - token
      title: Body_introspect_endpoint_oauth_introspect_post
    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
    Body_token_endpoint_oauth_token_post:
      properties:
        grant_type:
          type: string
          title: Grant Type
        code:
          anyOf:
          - type: string
          - type: 'null'
          title: Code
        redirect_uri:
          anyOf:
          - type: string
          - type: 'null'
          title: Redirect Uri
        client_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Client Id
        client_secret:
          anyOf:
          - type: string
          - type: 'null'
          title: Client Secret
        code_verifier:
          anyOf:
          - type: string
          - type: 'null'
          title: Code Verifier
        refresh_token:
          anyOf:
          - type: string
          - type: 'null'
          title: Refresh Token
      type: object
      required:
      - grant_type
      title: Body_token_endpoint_oauth_token_post
    AuthorizeMetadataResponse:
      properties:
        request_id:
          type: string
          title: Request Id
        client_name:
          type: string
          title: Client Name
        client_logo_url:
          anyOf:
          - type: string
          - type: 'null'
          title: Client Logo Url
        client_homepage_url:
          anyOf:
          - type: string
          - type: 'null'
          title: Client Homepage Url
        scopes:
          items:
            additionalProperties:
              type: string
            type: object
          type: array
          title: Scopes
        redirect_uri:
          type: string
          title: Redirect Uri
        state:
          anyOf:
          - type: string
          - type: 'null'
          title: State
      type: object
      required:
      - request_id
      - client_name
      - scopes
      - redirect_uri
      title: AuthorizeMetadataResponse
      description: Consent screen payload — fetched by the frontend consent page.
  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.