> ## Documentation Index
> Fetch the complete documentation index at: https://docs.phosra.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List rating systems

> List all content rating systems (MPAA, TV, ESRB, PEGI, CSM).

Rating systems are the content-classification vocabularies Phosra maps against — MPAA, ESRB, PEGI,
Common Sense Media, and the US TV Parental Guidelines. This endpoint is **public**; use it to
discover the `id` you pass to the other ratings endpoints.

```bash theme={null}
curl https://phosra-api-sandbox-production.up.railway.app/api/v1/ratings/systems
```

```json Example response (live sandbox) theme={null}
[
  { "id": "csm",  "name": "Common Sense Media", "country": "US", "media_type": "general", "description": "Common Sense Media age-based ratings" },
  { "id": "esrb", "name": "ESRB",  "country": "US", "media_type": "game",  "description": "Entertainment Software Rating Board" },
  { "id": "mpaa", "name": "MPAA",  "country": "US", "media_type": "movie", "description": "Motion Picture Association of America film rating system" },
  { "id": "pegi", "name": "PEGI",  "country": "EU", "media_type": "game",  "description": "Pan European Game Information" },
  { "id": "tvpg", "name": "TV Parental Guidelines", "country": "US", "media_type": "tv", "description": "US television content rating system" }
]
```


## OpenAPI

````yaml GET /ratings/systems
openapi: 3.1.0
info:
  title: Phosra API
  description: Universal Parental Controls API - Define once, push everywhere
  version: 1.0.0
  contact:
    name: Phosra Developer Support
    url: https://docs.phosra.com
  license:
    name: Proprietary
    url: https://phosra.com/terms
servers:
  - url: https://phosra-api-sandbox-production.up.railway.app/api/v1
    description: >-
      Hosted sandbox — the one canonical, stable, partner-facing testing
      endpoint (seeded demo family + phosra_test_ keys). Default so the inline
      Try it never touches production. Same base the CLI uses.
  - url: https://prodapi.phosra.com/api/v1
    description: Production
  - url: http://localhost:8080/api/v1
    description: Local development
security:
  - BearerAuth: []
paths:
  /ratings/systems:
    get:
      tags:
        - Ratings
      summary: List rating systems
      description: List all content rating systems (MPAA, TV, ESRB, PEGI, CSM).
      operationId: listRatingSystems
      responses:
        '200':
          description: Rating systems
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/RatingSystem'
              example:
                - id: csm
                  name: Common Sense Media
                  country: US
                  media_type: general
                  description: Common Sense Media age-based ratings
                - id: esrb
                  name: ESRB
                  country: US
                  media_type: game
                  description: Entertainment Software Rating Board
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/ServerError'
      security: []
      x-codeSamples:
        - lang: JavaScript
          label: SDK (@phosra/sdk)
          source: |
            import { PhosraClient } from "@phosra/sdk";

            const phosra = new PhosraClient({
              baseUrl: "https://phosra-api-sandbox-production.up.railway.app/api/v1",
              accessToken: process.env.PHOSRA_API_KEY,
            });

            const result = await phosra.ratings.systems();
            console.log(result);
        - lang: Shell
          label: cURL
          source: >
            curl -sS
            "https://phosra-api-sandbox-production.up.railway.app/api/v1/ratings/systems"
        - lang: Python
          label: Python
          source: |
            import requests

            BASE = "https://phosra-api-sandbox-production.up.railway.app/api/v1"
            res = requests.get(
                f"{BASE}/ratings/systems",
            )
            print(res.status_code, res.json())
        - lang: Go
          label: Go
          source: "package main\n\nimport (\n\t\"fmt\"\n\t\"io\"\n\t\"net/http\"\n)\n\nfunc main() {\n\tbase := \"https://phosra-api-sandbox-production.up.railway.app/api/v1\"\n\treq, _ := http.NewRequest(\"GET\", base+\"/ratings/systems\", nil)\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer resp.Body.Close()\n\tout, _ := io.ReadAll(resp.Body)\n\tfmt.Println(resp.Status, string(out))\n}\n"
components:
  schemas:
    RatingSystem:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier for this resource.
        name:
          type: string
          description: Human-readable display name.
        country:
          type: string
          description: ISO country associated with this resource.
        media_type:
          type: string
          description: >-
            Type of media the rating system applies to (e.g. `game`, `film`,
            `general`).
        description:
          type: string
          description: Human-readable description.
      additionalProperties: true
    Error:
      type: object
      properties:
        error:
          type: string
          description: >-
            Short, stable, machine-readable error class — matches the HTTP
            status text (e.g. `Not Found`).
        message:
          type: string
          description: >-
            Human-readable explanation of what went wrong and, where possible,
            how to fix it.
        code:
          type: integer
          description: Numeric HTTP status code, duplicated in the body for convenience.
      description: Standard error envelope returned for every 4xx and 5xx response.
      example:
        error: Not Found
        message: policy not found
        code: 404
      additionalProperties: true
  responses:
    Unauthorized:
      description: >-
        Authentication failed. Send a Bearer WorkOS JWT, or a
        `phosra_live_`/`phosra_test_` developer API key, in the `Authorization`
        header.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Unauthorized
            message: missing or invalid Authorization header
            code: 401
    RateLimited:
      description: >-
        Too many requests. Back off and retry after the interval given in the
        `Retry-After` response header.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Too Many Requests
            message: rate limit exceeded
            code: 429
    ServerError:
      description: >-
        An unexpected error occurred inside Phosra. The request is safe to retry
        with exponential backoff; contact support if it persists.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Internal Server Error
            message: internal error
            code: 500
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````