---
title: "Public endpoint"
url: "https://console.staging.9fin.com/apis/demo-webapp-staging/versions/ba551c00-5e8d-4520-ae68-9ae9da9ee5fb/operations/getPublic"
---

> Full API specification: https://console.staging.9fin.com/apis/demo-webapp-staging/versions/ba551c00-5e8d-4520-ae68-9ae9da9ee5fb.md

# Public endpoint

`GET` `/api/public`

Operation ID: `getPublic`

## Responses

- `200` - Public response

## OpenAPI definition

```yaml
openapi: 3.0.3
info:
  title: Demo Web App API
  version: 1.1.8
servers:
  - url: https://{host}/demo
    description: Kong proxy base URL + service base path
    variables:
      host:
        default: api.staging.9fin.com
        description: Self-hosted Demo Gateway from infra-tf PR
paths:
  /api/public:
    get:
      tags:
        - Public
      summary: Public endpoint
      operationId: getPublic
      security:
        - apiKeyAuth: []
        - bearerAuth: []
      responses:
        "200":
          description: Public response
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/StatusMessage"
security:
  - apiKeyAuth: []
  - bearerAuth: []
components:
  schemas:
    StatusMessage:
      type: object
      required:
        - status
        - msg
      properties:
        status:
          type: string
          example: success
        msg:
          type: string
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: apikey
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: |
        Bearer access token issued by WorkOS AuthKit. Obtain a token by
        exchanging your DCR-issued `client_id` / `client_secret` at the
        token endpoint, then send it here as `Authorization: Bearer <token>`.

        Token endpoint (staging):
        `https://imaginative-explorer-58-staging.authkit.app/oauth2/token`
```
