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

# List states

> All 37 states with their 2-letter SSLL code and full name. Served from a precomputed catalog (not derived per request); free, no credits consumed.



## OpenAPI

````yaml /api-reference/openapi.yaml get /v1/reference/states
openapi: 3.1.0
info:
  title: NIPOST Postcode Gateway — Public API
  version: 0.1.0
  description: >
    Public API for Nigeria's national postcode system. Search and Lookup L1 are
    free; Lookup L2–L4 are commercial (credits); L5 is restricted. Authenticate
    with an API key.
servers:
  - url: https://api.postcode.gov.ng
    description: Production
security:
  - ApiKeyAuth: []
paths:
  /v1/reference/states:
    get:
      tags:
        - Reference
      summary: List states
      description: >-
        All 37 states with their 2-letter SSLL code and full name. Served from a
        precomputed catalog (not derived per request); free, no credits
        consumed.
      responses:
        '200':
          description: Every state (code + name)
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      states:
                        type: array
                        items:
                          $ref: '#/components/schemas/NamedCode'
components:
  schemas:
    NamedCode:
      type: object
      description: A code with an optional full name (districts and areas are code-only).
      required:
        - code
      properties:
        code:
          type: string
          example: FC
        name:
          type: string
          example: Federal Capital Territory
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.