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

# Close a recovery

> Requires the `write` scope and a `member` (or higher) key role.



## OpenAPI

````yaml /swagger/v1/openapi.yaml post /v1/recoveries/{id}/close
openapi: 3.0.1
info:
  title: SentinelAR API
  version: v1
  description: >-
    Read and act on customers, invoices, recoveries, messages and fees.
    Authenticate with an API key from Settings → API Keys as a bearer token.
servers:
  - url: https://api.sentinelar.app
    description: Production
  - url: '{scheme}://{host}/api'
    description: Local
    variables:
      scheme:
        default: http
        enum:
          - http
          - https
      host:
        default: localhost:3000
security:
  - bearer_auth: []
paths:
  /v1/recoveries/{id}/close:
    parameters:
      - name: id
        in: path
        schema:
          type: string
          format: uuid
        required: true
    post:
      tags:
        - Recoveries
      summary: Close a recovery
      description: Requires the `write` scope and a `member` (or higher) key role.
      responses:
        '200':
          description: recovery closed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/recovery'
        '422':
          description: recovery cannot transition
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
components:
  schemas:
    recovery:
      type: object
      properties:
        id:
          type: string
          format: uuid
        object:
          type: string
          enum:
            - recovery
        customer:
          type: string
          format: uuid
        invoice:
          type: string
          format: uuid
        status:
          type: string
          enum:
            - not_contacted
            - contacted
            - negotiating
            - recovered
            - handed_to_team
            - closed
        last_contacted_at:
          type: string
          format: date-time
          nullable: true
        recovered:
          allOf:
            - $ref: '#/components/schemas/money'
          nullable: true
        recovered_at:
          type: string
          format: date-time
          nullable: true
        handed_to_team_at:
          type: string
          format: date-time
          nullable: true
        handoff_reason:
          type: string
          nullable: true
          enum:
            - too_many_turns
            - suspicious_reply
            - ai_unavailable
            - other
            - null
        closed_at:
          type: string
          format: date-time
          nullable: true
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
      required:
        - id
        - object
        - customer
        - invoice
        - status
    error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
          required:
            - code
            - message
      required:
        - error
    money:
      type: object
      properties:
        amount:
          type: string
          example: '500.00'
        currency:
          type: string
          example: USD
      required:
        - amount
        - currency
      additionalProperties: false
  securitySchemes:
    bearer_auth:
      type: http
      scheme: bearer
      bearerFormat: snl_<32 hex>

````

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