{
  "info": {
    "name": "ANISIVO Partner API 1.0.0",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://sandbox-api.anisivo.com/v1"
    },
    {
      "key": "accessToken",
      "value": ""
    },
    {
      "key": "clinicId",
      "value": ""
    }
  ],
  "item": [
    {
      "name": "Exchange client credentials",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{accessToken}}",
            "disabled": true
          },
          {
            "key": "X-ANISIVO-Clinic-ID",
            "value": "{{clinicId}}",
            "disabled": true
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/oauth/token",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "oauth",
            "token"
          ]
        },
        "description": "exchangeToken — generated from OpenAPI."
      }
    },
    {
      "name": "Get authorized clinic context",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{accessToken}}",
            "disabled": false
          },
          {
            "key": "X-ANISIVO-Clinic-ID",
            "value": "{{clinicId}}",
            "disabled": false
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/context",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "context"
          ]
        },
        "description": "getClinicContext — generated from OpenAPI."
      }
    },
    {
      "name": "List appointments",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{accessToken}}",
            "disabled": false
          },
          {
            "key": "X-ANISIVO-Clinic-ID",
            "value": "{{clinicId}}",
            "disabled": false
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/appointments",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "appointments"
          ]
        },
        "description": "listPartnerAppointments — generated from OpenAPI."
      }
    },
    {
      "name": "Create an appointment",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{accessToken}}",
            "disabled": false
          },
          {
            "key": "X-ANISIVO-Clinic-ID",
            "value": "{{clinicId}}",
            "disabled": false
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/appointments",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "appointments"
          ]
        },
        "description": "createPartnerAppointment — generated from OpenAPI."
      }
    },
    {
      "name": "Get sandbox state",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{accessToken}}",
            "disabled": false
          },
          {
            "key": "X-ANISIVO-Clinic-ID",
            "value": "{{clinicId}}",
            "disabled": true
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/sandbox",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "sandbox"
          ]
        },
        "description": "getSandboxState — generated from OpenAPI."
      }
    },
    {
      "name": "Reset sandbox fixtures",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{accessToken}}",
            "disabled": false
          },
          {
            "key": "X-ANISIVO-Clinic-ID",
            "value": "{{clinicId}}",
            "disabled": true
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/sandbox",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "sandbox"
          ]
        },
        "description": "resetSandbox — generated from OpenAPI."
      }
    },
    {
      "name": "List webhook endpoints",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{accessToken}}",
            "disabled": false
          },
          {
            "key": "X-ANISIVO-Clinic-ID",
            "value": "{{clinicId}}",
            "disabled": false
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/webhooks",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "webhooks"
          ]
        },
        "description": "listWebhookEndpoints — generated from OpenAPI."
      }
    },
    {
      "name": "Create webhook endpoint",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{accessToken}}",
            "disabled": false
          },
          {
            "key": "X-ANISIVO-Clinic-ID",
            "value": "{{clinicId}}",
            "disabled": false
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/webhooks",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "webhooks"
          ]
        },
        "description": "createWebhookEndpoint — generated from OpenAPI."
      }
    },
    {
      "name": "Revoke webhook endpoint",
      "request": {
        "method": "DELETE",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{accessToken}}",
            "disabled": false
          },
          {
            "key": "X-ANISIVO-Clinic-ID",
            "value": "{{clinicId}}",
            "disabled": false
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/webhooks/{{endpointId}}",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "webhooks",
            "{endpointId}"
          ]
        },
        "description": "revokeWebhookEndpoint — generated from OpenAPI."
      }
    },
    {
      "name": "Rotate webhook signing secret",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{accessToken}}",
            "disabled": false
          },
          {
            "key": "X-ANISIVO-Clinic-ID",
            "value": "{{clinicId}}",
            "disabled": false
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/webhooks/{{endpointId}}",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "webhooks",
            "{endpointId}"
          ]
        },
        "description": "rotateWebhookSecret — generated from OpenAPI."
      }
    },
    {
      "name": "List recent deliveries",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{accessToken}}",
            "disabled": false
          },
          {
            "key": "X-ANISIVO-Clinic-ID",
            "value": "{{clinicId}}",
            "disabled": false
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/webhooks/{{endpointId}}/deliveries",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "webhooks",
            "{endpointId}",
            "deliveries"
          ]
        },
        "description": "listWebhookDeliveries — generated from OpenAPI."
      }
    },
    {
      "name": "Replay a failed delivery",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{accessToken}}",
            "disabled": false
          },
          {
            "key": "X-ANISIVO-Clinic-ID",
            "value": "{{clinicId}}",
            "disabled": false
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/webhooks/{{endpointId}}/deliveries",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "webhooks",
            "{endpointId}",
            "deliveries"
          ]
        },
        "description": "replayWebhookDelivery — generated from OpenAPI."
      }
    }
  ]
}
