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

# Get Current Migration

> Get current database revision.

Returns the currently applied migration revision.

Only superadmins can access this endpoint.



## OpenAPI

````yaml get /api/v1/migrations/current
openapi: 3.1.0
info:
  title: SnackBase
  description: Open-source Backend-as-a-Service (BaaS)
  version: 0.1.0
servers: []
security: []
paths:
  /api/v1/migrations/current:
    get:
      tags:
        - migrations
      summary: Get Current Migration
      description: |-
        Get current database revision.

        Returns the currently applied migration revision.

        Only superadmins can access this endpoint.
      operationId: get_current_migration_api_v1_migrations_current_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CurrentRevisionResponse'
        '403':
          description: Superadmin access required
        '404':
          description: No current revision (database not initialized)
components:
  schemas:
    CurrentRevisionResponse:
      properties:
        revision:
          type: string
          title: Revision
          description: Current revision identifier
        description:
          type: string
          title: Description
          description: Migration description
        created_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Created At
          description: Creation timestamp (ISO format)
      type: object
      required:
        - revision
        - description
      title: CurrentRevisionResponse
      description: Response schema for current database revision.

````