{
  "opencollection": "1.0.0",
  "info": {
    "name": "Loops OpenAPI Spec API key Contacts API",
    "version": "1.8.0"
  },
  "items": [
    {
      "info": {
        "name": "Contacts",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Create a contact",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://app.loops.so/api/v1/contacts/create",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Add a contact to your audience."
        },
        {
          "info": {
            "name": "Update a contact",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://app.loops.so/api/v1/contacts/update",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Update a contact by `email` or `userId`. You must provide one of these parameters.<br>If you want to update a contact’s email address, the contact will first need a `userId` value. You can then make a request containing the userId field along with an updated email address."
        },
        {
          "info": {
            "name": "Find a contact",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://app.loops.so/api/v1/contacts/find",
            "params": [
              {
                "name": "email",
                "value": "",
                "type": "query",
                "description": "Email address (URI-encoded)"
              },
              {
                "name": "userId",
                "value": "",
                "type": "query"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Search for a contact by `email` or `userId`. Only one parameter is allowed."
        },
        {
          "info": {
            "name": "Delete a contact",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://app.loops.so/api/v1/contacts/delete",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Delete a contact by `email` or `userId`."
        },
        {
          "info": {
            "name": "Get suppression status for a contact",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://app.loops.so/api/v1/contacts/suppression",
            "params": [
              {
                "name": "email",
                "value": "",
                "type": "query",
                "description": "Email address (URI-encoded)"
              },
              {
                "name": "userId",
                "value": "",
                "type": "query"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Retrieve suppression status and removal quota for a contact by `email` or `userId`. Include only one query parameter."
        },
        {
          "info": {
            "name": "Remove a contact from suppression list",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://app.loops.so/api/v1/contacts/suppression",
            "params": [
              {
                "name": "email",
                "value": "",
                "type": "query",
                "description": "Email address (URI-encoded)"
              },
              {
                "name": "userId",
                "value": "",
                "type": "query"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Remove a suppressed contact from the suppression list by `email` or `userId`. Include only one query parameter."
        }
      ]
    }
  ],
  "bundled": true
}