Customer

Gets customers

get

Gets a list of customers in the organization with the specified organizationId. If 'teamId' is provided as a query parameter, it gets a single customer by that ID.

Query parameters
teamIdnumberOptional

Customer ID

Responses
200
Customers returned successfully.
application/json
get
GET /portal/api/bridge/customers HTTP/1.1
Host: <zone>.make.com
Accept: */*
200

Customers returned successfully.

{
  "customers": [
    {
      "id": 1,
      "name": "text",
      "organizationId": 1,
      "operationsLimit": 1,
      "externalId": "text"
    }
  ]
}

Creates a new customer

post

Creates a new customer in the organization, and assigns it as externalID the name that is provided in the body. This endpoint is only available when the JWT's 'sub' is '*'

Body
namestring · min: 1Required

Name of the customer

organizationIdnumberOptionalDeprecated

Deprecated - the organization ID is taken from the JWT.

operationsLimitnumberOptional

The maximum number of operations allowed for the customer.

Responses
200
Customer created successfully.
application/json
post
POST /portal/api/bridge/customers HTTP/1.1
Host: <zone>.make.com
Content-Type: application/json
Accept: */*
Content-Length: 35

{
  "name": "text",
  "operationsLimit": 1
}
200

Customer created successfully.

{
  "customer": {
    "id": 1,
    "name": "text",
    "organizationId": 1,
    "operationsLimit": 1,
    "externalId": "text"
  }
}

Deletes a customer

delete

Deletes a customer by the external ID passed in the JWT's "sub". If the "sub" is "*", must provide "teamId" as query parameter.

Query parameters
teamIdnumberOptional

Customer ID

Responses
200
Customer deleted successfully.
application/json
delete
DELETE /portal/api/bridge/customers HTTP/1.1
Host: <zone>.make.com
Accept: */*
200

Customer deleted successfully.

{
  "deleted": true
}

Updates a customer

patch

Updates an existing customer's name or operationsLimit by the external ID passed in the JWT's 'sub'. If the 'sub' is '*', must provide 'teamId' as query parameter. Note that updating the customer's name does not change their external ID.

Query parameters
teamIdnumberOptional

Customer ID

Body
namestring · min: 1Optional

New name of the customer

operationsLimitnumberOptional

The maximum number of operations allowed for the customer.

Responses
200
Customer updated successfully.
application/json
patch
PATCH /portal/api/bridge/customers HTTP/1.1
Host: <zone>.make.com
Content-Type: application/json
Accept: */*
Content-Length: 35

{
  "name": "text",
  "operationsLimit": 1
}
200

Customer updated successfully.

{
  "customer": {
    "id": 1,
    "name": "text",
    "organizationId": 1,
    "operationsLimit": 1,
    "externalId": "text"
  }
}