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

# Unlink an account

> POST /bilt/unlink-account — end a link when the member disconnects in the Bilt app.

Implement **`POST /bilt/unlink-account`** on your server. Bilt calls it with the request below.


## OpenAPI

````yaml /partners/openapi.yaml webhook unlinkAccount
openapi: 3.1.0
info:
  title: Bilt partner API
  version: 1.0.0
  license:
    name: Proprietary
    identifier: LicenseRef-Proprietary
  description: >
    Link a Bilt member to an account in your product, and report that member's
    orders so Bilt can reward them. The `paths` are the endpoints Bilt hosts.
    The `webhooks` are the endpoints you host so Bilt can link, create, and
    unlink an account from the Bilt app.
  contact:
    name: Bilt partner support
    url: https://docs.bilt.dev/partners/overview
servers:
  - url: https://partnerapi.biltrewards.com
    description: Production
  - url: https://staging.partnerapi.biltrewards.com
    description: Staging
security:
  - partnerBearer: []
  - apiKey: []
tags:
  - name: Endpoints you host
    description: >
      Endpoints you build and host. Bilt calls them from its backend when a
      member links, creates, or unlinks an account from the Bilt app. Base URLs
      are agreed during onboarding.
  - name: Account links
    description: >
      Endpoints Bilt hosts. You call them from your backend to create, read, and
      end a link.
  - name: Order reports
    description: >
      Endpoints Bilt hosts on its webhooks host. You post each change to a
      linked customer's order, signed with your Ed25519 key. This contract is a
      proposal under design review and is not live yet.
paths: {}
components:
  securitySchemes:
    partnerBearer:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >
        Preferred. An access token your partner client mints with the client
        credentials grant. Send it only on the `Authorization` header. It is not
        the member access token from the code exchange.
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: >
        Being retired in favor of the partner access token. Do not send both: a
        rejected bearer token does not fall back to the key.

````

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