{
  "opencollection": "1.0.0",
  "info": {
    "name": "Encharge REST API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "X-Encharge-Token",
      "value": "{{X-Encharge-Token}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Account",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get account info",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.encharge.io/v1/accounts/info"
          },
          "docs": "Get account info"
        }
      ]
    },
    {
      "info": {
        "name": "People",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List people",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.encharge.io/v1/people",
            "params": [
              {
                "name": "email",
                "value": "",
                "type": "query"
              },
              {
                "name": "userId",
                "value": "",
                "type": "query"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query"
              },
              {
                "name": "offset",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "List people"
        },
        {
          "info": {
            "name": "Create or update person",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.encharge.io/v1/people",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create or update person"
        },
        {
          "info": {
            "name": "Archive person",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.encharge.io/v1/people",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Archive person"
        },
        {
          "info": {
            "name": "Unsubscribe a person",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.encharge.io/v1/people/unsubscribe",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Unsubscribe a person"
        }
      ]
    },
    {
      "info": {
        "name": "Fields",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List person fields",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.encharge.io/v1/fields"
          },
          "docs": "List person fields"
        },
        {
          "info": {
            "name": "Create field",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.encharge.io/v1/fields",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create field"
        },
        {
          "info": {
            "name": "Update field",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.encharge.io/v1/fields/:fieldName",
            "params": [
              {
                "name": "fieldName",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update field"
        },
        {
          "info": {
            "name": "Delete field",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.encharge.io/v1/fields/:fieldName",
            "params": [
              {
                "name": "fieldName",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Delete field"
        }
      ]
    },
    {
      "info": {
        "name": "Segments",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List segments",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.encharge.io/v1/segments"
          },
          "docs": "List segments"
        },
        {
          "info": {
            "name": "List people in segment",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.encharge.io/v1/segments/:segmentId/people",
            "params": [
              {
                "name": "segmentId",
                "value": "",
                "type": "path"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query"
              },
              {
                "name": "offset",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "List people in segment"
        }
      ]
    },
    {
      "info": {
        "name": "Tags",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Add tags to users",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.encharge.io/v1/tags",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Add tags to users"
        },
        {
          "info": {
            "name": "Remove tags from users",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.encharge.io/v1/tags",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Remove tags from users"
        }
      ]
    },
    {
      "info": {
        "name": "Events",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Create event subscription (webhook)",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.encharge.io/v1/event-subscriptions",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create event subscription (webhook)"
        },
        {
          "info": {
            "name": "Delete event subscription",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.encharge.io/v1/event-subscriptions/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Delete event subscription"
        }
      ]
    },
    {
      "info": {
        "name": "Transactional Email",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Send transactional email",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.encharge.io/v1/emails/send",
            "params": [
              {
                "name": "token",
                "value": "",
                "type": "query"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Send a transactional email via template or custom HTML/text. Pass the API key as the `token` query parameter or via the `X-Encharge-Token` header.\n"
        }
      ]
    },
    {
      "info": {
        "name": "Ingest",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Ingest people or events",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.encharge.io/v1/",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Encharge Ingest API endpoint for sending people and events from your backend. Use the matching server URL (https://ingest.encharge.io/v1).\n"
        }
      ]
    }
  ],
  "bundled": true
}