{
  "opencollection": "1.0.0",
  "info": {
    "name": "Weave Contacts API",
    "version": "1.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "authorization_code",
      "authorizationUrl": "https://auth.weaveconnect.com/oauth2/default/v1/authorize",
      "accessTokenUrl": "https://auth.weaveconnect.com/oauth2/default/v1/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Contacts",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List contacts",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.weaveconnect.com/v1/contacts",
            "params": [
              {
                "name": "location_id",
                "value": "",
                "type": "query",
                "description": "The Weave location (sub-account) the request is scoped to. Required on most endpoints; may alternatively be supplied via a location header."
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Maximum number of items to return."
              }
            ]
          },
          "docs": "Lists the contacts (patients/customers) for a location."
        },
        {
          "info": {
            "name": "Search contacts",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.weaveconnect.com/v1/contacts/search",
            "params": [
              {
                "name": "location_id",
                "value": "",
                "type": "query",
                "description": "The Weave location (sub-account) the request is scoped to. Required on most endpoints; may alternatively be supplied via a location header."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Searches contacts by name, phone, email, or other attributes."
        },
        {
          "info": {
            "name": "List contact info records",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.weaveconnect.com/v1/contact-infos",
            "params": [
              {
                "name": "location_id",
                "value": "",
                "type": "query",
                "description": "The Weave location (sub-account) the request is scoped to. Required on most endpoints; may alternatively be supplied via a location header."
              }
            ]
          },
          "docs": "Lists contact-info records (phone numbers, emails) for a location's contacts."
        },
        {
          "info": {
            "name": "Block a contact",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.weaveconnect.com/v1/contacts/block",
            "params": [
              {
                "name": "location_id",
                "value": "",
                "type": "query",
                "description": "The Weave location (sub-account) the request is scoped to. Required on most endpoints; may alternatively be supplied via a location header."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Blocks a contact from receiving messages from the location."
        },
        {
          "info": {
            "name": "Unblock a contact",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.weaveconnect.com/v1/contacts/unblock",
            "params": [
              {
                "name": "location_id",
                "value": "",
                "type": "query",
                "description": "The Weave location (sub-account) the request is scoped to. Required on most endpoints; may alternatively be supplied via a location header."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Unblocks a previously blocked contact."
        }
      ]
    }
  ],
  "bundled": true
}