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

# Reset the sandbox

> Puts the sandbox back to its demo data, so a test run starts clean: everything in it is deleted and seeded again; its id, keys and webhook endpoints stay, and change-feed cursors get 410 and read again. Only a sandbox key (`dg_test_`) can call it (403 `SBX_004`). 20 resets a day (429 `SBX_003` with `details.retry_after`).



## OpenAPI

````yaml /public-openapi.json post /v1/sandbox/reset
openapi: 3.1.0
info:
  contact:
    email: support@degroshi.com
    name: Degroshi Support
  description: >-
    The routes a personal access token may call, each with the scope it needs
    (x-required-scope; `any:read` takes any read scope, `any:token` any token).
    Send the token as X-API-Key and the space as X-Space-ID (optional for a
    token bound to one space). Send X-Display-Currency (ISO 4217) to get
    converted amounts and totals in that currency. Each token has its own rate
    limit: past it a request answers 429 (BIZ_080) with Retry-After, and every
    answer carries X-RateLimit-Limit, -Remaining and -Reset. v1 changes only by
    addition. `x-error-codes` lists the error codes these routes' families can
    answer, each with its HTTP statuses. `webhooks` lists the events a webhook
    endpoint receives, each signed in Degroshi-Signature.
  title: Degroshi public API
  version: '1.0'
servers:
  - description: Production server
    url: https://api.degroshi.com
security:
  - ApiKeyAuth: []
paths:
  /v1/sandbox/reset:
    post:
      tags:
        - sandbox
      summary: Reset the sandbox
      description: >-
        Puts the sandbox back to its demo data, so a test run starts clean:
        everything in it is deleted and seeded again; its id, keys and webhook
        endpoints stay, and change-feed cursors get 410 and read again. Only a
        sandbox key (`dg_test_`) can call it (403 `SBX_004`). 20 resets a day
        (429 `SBX_003` with `details.retry_after`).
      operationId: resetSandbox
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SandboxResponseEnvelope'
          description: OK
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Forbidden
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Too Many Requests
      security:
        - ApiKeyAuth: []
components:
  schemas:
    SandboxResponseEnvelope:
      properties:
        data:
          $ref: '#/components/schemas/SandboxResponse'
        success:
          description: Always true
          type: boolean
      required:
        - success
        - data
      type: object
      x-unwrapped:
        $ref: '#/components/schemas/SandboxResponse'
    ErrorResponse:
      description: Error envelope written for every 4xx/5xx response.
      properties:
        error:
          $ref: '#/components/schemas/ErrorBody'
        success:
          description: Always false
          type: boolean
      required:
        - success
        - error
      type: object
    SandboxResponse:
      properties:
        name:
          type: string
        resets_left_today:
          description: >-
            `resets_left_today` counts the resets left in the last 24 hours (at
            most 20).
          examples:
            - 20
          type: integer
        seed_version:
          description: >-
            `seed_version` names the demo data's contents; it changes when the
            seed does.
          examples:
            - 1
          type: integer
        seeded_at:
          description: 'The last seed: the sandbox''s creation or its last reset.'
          format: date-time
          type: string
        space_id:
          type: string
      required:
        - space_id
        - name
        - seeded_at
        - seed_version
        - resets_left_today
      type: object
    ErrorBody:
      properties:
        code:
          description: Machine-readable error code (see x-error-codes)
          examples:
            - AUTH_001
          type: string
        correlation_id:
          description: Request correlation id; include it in bug reports
          type:
            - string
            - 'null'
        details:
          additionalProperties: true
          description: Additional error context
          type:
            - object
            - 'null'
        message:
          description: Human-readable error message describing the specific error
          examples:
            - Error description varies by error code
          type: string
      required:
        - code
        - message
      type: object
  securitySchemes:
    ApiKeyAuth:
      description: >-
        A personal access token. In the reference console at docs.degroshi.com,
        paste a sandbox key (`dg_test_…`): the console takes sandbox keys only
        and answers 403 AUTH_081 to any other.
      in: header
      name: X-API-Key
      type: apiKey

````

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