Skip to documentation
Profiles & rentalsRule templates

Rule templates

Methods, permissions, request fields and response schemas for rule templates.

Read and search

Retrieve current records, history and status.

List organization rulesSearch and paginate rule templates records accessible to your organization.GET/rule-templates
Token scope profiles:readActor permission memberAction type read

Pagination: Default 50, maximum 100. Follow nextCursor with the same search, tenant and resource until null. Creation cutoff excludes later inserts; mutable fields may change between pages. Unsupported search returns 400.

Query parameters

FieldTypeDescription and constraints
limitOptionalintegerMinimum 1 · Maximum 100 · Default: 50
cursorOptionalstringAt least 1 characters · At most 768 characters
searchOptionalstringAt least 0 characters · At most 200 characters

Example response

Illustrative · HTTP 200

Sample values from the response schema. No API request is sent.

{
  "data": [
    {
      "id": "11111111-1111-4111-8111-111111111111",
      "name": "Example name",
      "icon": "Example icon",
      "bodyType": "list",
      "body": "Example body",
      "rules": [
        "Example rules-0"
      ],
      "createdById": "11111111-1111-4111-8111-111111111111",
      "createdAt": "2026-01-01T00:00:00Z",
      "updatedAt": "2026-01-01T00:00:00Z"
    }
  ],
  "nextCursor": "Example nextCursor"
}
To see your organization’s actual response, use an API key.

What you receive

{data: bounded rules summaries[], nextCursor: string | null}. Fetch detail endpoints for full records.

Request example · cURL

Replace example IDs and values. Supply the token from your secret store. Each intended write uses one stable $ACTION_KEY.

curl -X GET "$BASE/rule-templates?limit=50" \
  -H "Authorization: Bearer $ALLPROFILES_API_TOKEN"
Success response schema · HTTP 200
{
  "application/json": {
    "schema": {
      "type": "object",
      "properties": {
        "data": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "name": {
                "type": "string"
              },
              "icon": {
                "type": "string"
              },
              "bodyType": {
                "type": "string",
                "enum": [
                  "list",
                  "description"
                ]
              },
              "body": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "rules": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "createdById": {
                "type": "string",
                "format": "uuid"
              },
              "createdAt": {
                "type": "string",
                "format": "date-time"
              },
              "updatedAt": {
                "type": "string",
                "format": "date-time"
              }
            },
            "required": [
              "id",
              "name",
              "icon",
              "bodyType",
              "body",
              "rules",
              "createdById",
              "createdAt",
              "updatedAt"
            ],
            "additionalProperties": false
          },
          "maxItems": 100,
          "minItems": 0
        },
        "nextCursor": {
          "type": [
            "string",
            "null"
          ],
          "minLength": 1,
          "maxLength": 768
        }
      },
      "required": [
        "data",
        "nextCursor"
      ],
      "additionalProperties": false
    }
  }
}
Errors and recovery
400
Invalid JSON, request fields, query, path identifier or missing Idempotency-Key.
401
Missing, invalid, revoked or expired organization API token; its issuing actor must still be the current organization owner.
403
Token scope or actor capability denied, disabled/banned account, or action unavailable.
404
Unknown route or resource not accessible in the bound organization. Cross-tenant resources are not enumerated.
409
Conflicting profile/rental state, duplicate resource, idempotency payload mismatch or operation still in progress.
410
event_cursor_expired: the event cursor is behind retained history. Reconcile current resources and start from the supplied recovery cursor.
422
Business validation/moderation rejected the operation. CHAT_MESSAGE_BLOCKED was not delivered.
429
API rate/concurrency limit exceeded; use backoff and Retry-After when present.
500
Internal operation error. Sensitive implementation details are not returned. Investigate using the request ID before repeating a write.
503
Provider or configuration unavailable; uncertain writes must retain the same Idempotency-Key.

Example responses are illustrative. Try live request sends a request to the API and shows its actual status and response. Your token scopes, organization permissions and the current state of the resource determine what the server allows.

Financial fields named ...Cents or ...InCents use integer cents. Path fields and nested constraints are shown above and in the downloadable OpenAPI contract.

Create and import

Add records, prepare imports or start a new setup.

Create a rule templateCreated rule template.POST/rule-templates
Token scope profiles:writeActor permission memberAction type write

Send Idempotency-Key. Retry the same intended action with the same key and exact payload to retrieve its saved result.

Request body

FieldTypeDescription and constraints
nameRequiredstringAt least 1 characters · At most 80 characters
iconRequiredstringAt least 0 characters · At most 40 characters
bodyTypeRequiredstringOne of: "list", "description"
rulesOptionalarray of stringAt least 0 items · At most 50 items
bodyOptionalstringAt least 0 characters · At most 5000 characters

Example response

Illustrative · HTTP 201

Sample values from the response schema. No API request is sent.

{
  "name": "Example name",
  "icon": "Example icon",
  "bodyType": "list",
  "rules": [
    "Example rules-0"
  ],
  "body": "Example body",
  "id": "11111111-1111-4111-8111-111111111111",
  "organizationId": "11111111-1111-4111-8111-111111111111",
  "createdById": "11111111-1111-4111-8111-111111111111",
  "createdAt": "2026-01-01T00:00:00Z",
  "updatedAt": "2026-01-01T00:00:00Z"
}
To see your organization’s actual response, use an API key.

What you receive

Created rule template.

Request example · cURL

Replace example IDs and values. Supply the token from your secret store. Each intended write uses one stable $ACTION_KEY.

curl -X POST "$BASE/rule-templates" \
  -H "Authorization: Bearer $ALLPROFILES_API_TOKEN" \
  -H "Idempotency-Key: $ACTION_KEY" \
  -H "Content-Type: application/json" \
  --data '{"name":"example","icon":"example","bodyType":"list"}'
Full JSON request schema
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 80
    },
    "icon": {
      "type": "string",
      "minLength": 0,
      "maxLength": 40
    },
    "bodyType": {
      "type": "string",
      "enum": [
        "list",
        "description"
      ]
    },
    "rules": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 0,
        "maxLength": 500
      },
      "maxItems": 50,
      "minItems": 0
    },
    "body": {
      "type": "string",
      "minLength": 0,
      "maxLength": 5000
    }
  },
  "required": [
    "name",
    "icon",
    "bodyType"
  ],
  "additionalProperties": false
}
Success response schema · HTTP 201
{
  "application/json": {
    "schema": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 80
        },
        "icon": {
          "type": "string",
          "minLength": 0,
          "maxLength": 40
        },
        "bodyType": {
          "type": "string",
          "enum": [
            "list",
            "description"
          ]
        },
        "rules": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 0,
            "maxLength": 500
          },
          "maxItems": 50,
          "minItems": 0
        },
        "body": {
          "type": [
            "string",
            "null"
          ],
          "minLength": 0,
          "maxLength": 5000
        },
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "organizationId": {
          "type": "string",
          "format": "uuid"
        },
        "createdById": {
          "type": "string",
          "format": "uuid"
        },
        "createdAt": {
          "type": "string",
          "format": "date-time"
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time"
        }
      },
      "required": [
        "name",
        "icon",
        "bodyType",
        "rules",
        "body",
        "id",
        "organizationId",
        "createdById",
        "createdAt",
        "updatedAt"
      ],
      "additionalProperties": true
    }
  }
}
Errors and recovery
400
Invalid JSON, request fields, query, path identifier or missing Idempotency-Key.
401
Missing, invalid, revoked or expired organization API token; its issuing actor must still be the current organization owner.
403
Token scope or actor capability denied, disabled/banned account, or action unavailable.
404
Unknown route or resource not accessible in the bound organization. Cross-tenant resources are not enumerated.
409
Conflicting profile/rental state, duplicate resource, idempotency payload mismatch or operation still in progress.
410
event_cursor_expired: the event cursor is behind retained history. Reconcile current resources and start from the supplied recovery cursor.
422
Business validation/moderation rejected the operation. CHAT_MESSAGE_BLOCKED was not delivered.
429
API rate/concurrency limit exceeded; use backoff and Retry-After when present.
500
Internal operation error. Sensitive implementation details are not returned. Investigate using the request ID before repeating a write.
503
Provider or configuration unavailable; uncertain writes must retain the same Idempotency-Key.

Example responses are illustrative. Try live request sends a request to the API and shows its actual status and response. Your token scopes, organization permissions and the current state of the resource determine what the server allows.

Financial fields named ...Cents or ...InCents use integer cents. Path fields and nested constraints are shown above and in the downloadable OpenAPI contract.

Update and configure

Change existing records, assignments and configuration.

Edit a rule templateUpdated rule template.PATCH/rule-templates/:id
Token scope profiles:writeActor permission memberAction type write

Send Idempotency-Key. Retry the same intended action with the same key and exact payload to retrieve its saved result.

Path parameters

FieldTypeDescription and constraints
idRequiredstring · uuid

Resource UUID scoped to the current organization.

Request body

FieldTypeDescription and constraints
nameOptionalstringAt least 1 characters · At most 80 characters
iconOptionalstringAt least 0 characters · At most 40 characters
bodyTypeOptionalstringOne of: "list", "description"
rulesOptionalarray of stringAt least 0 items · At most 50 items
bodyOptionalstringAt least 0 characters · At most 5000 characters

Example response

Illustrative · HTTP 200

Sample values from the response schema. No API request is sent.

{
  "name": "Example name",
  "icon": "Example icon",
  "bodyType": "list",
  "rules": [
    "Example rules-0"
  ],
  "body": "Example body",
  "id": "11111111-1111-4111-8111-111111111111",
  "organizationId": "11111111-1111-4111-8111-111111111111",
  "createdById": "11111111-1111-4111-8111-111111111111",
  "createdAt": "2026-01-01T00:00:00Z",
  "updatedAt": "2026-01-01T00:00:00Z"
}
To see your organization’s actual response, use an API key.

What you receive

Updated rule template.

Request example · cURL

Replace example IDs and values. Supply the token from your secret store. Each intended write uses one stable $ACTION_KEY.

curl -X PATCH "$BASE/rule-templates/$ID" \
  -H "Authorization: Bearer $ALLPROFILES_API_TOKEN" \
  -H "Idempotency-Key: $ACTION_KEY" \
  -H "Content-Type: application/json" \
  --data '{}'
Full JSON request schema
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 80
    },
    "icon": {
      "type": "string",
      "minLength": 0,
      "maxLength": 40
    },
    "bodyType": {
      "type": "string",
      "enum": [
        "list",
        "description"
      ]
    },
    "rules": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 0,
        "maxLength": 500
      },
      "maxItems": 50,
      "minItems": 0
    },
    "body": {
      "type": "string",
      "minLength": 0,
      "maxLength": 5000
    }
  },
  "required": [],
  "additionalProperties": false
}
Success response schema · HTTP 200
{
  "application/json": {
    "schema": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 80
        },
        "icon": {
          "type": "string",
          "minLength": 0,
          "maxLength": 40
        },
        "bodyType": {
          "type": "string",
          "enum": [
            "list",
            "description"
          ]
        },
        "rules": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 0,
            "maxLength": 500
          },
          "maxItems": 50,
          "minItems": 0
        },
        "body": {
          "type": [
            "string",
            "null"
          ],
          "minLength": 0,
          "maxLength": 5000
        },
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "organizationId": {
          "type": "string",
          "format": "uuid"
        },
        "createdById": {
          "type": "string",
          "format": "uuid"
        },
        "createdAt": {
          "type": "string",
          "format": "date-time"
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time"
        }
      },
      "required": [
        "name",
        "icon",
        "bodyType",
        "rules",
        "body",
        "id",
        "organizationId",
        "createdById",
        "createdAt",
        "updatedAt"
      ],
      "additionalProperties": true
    }
  }
}
Errors and recovery
400
Invalid JSON, request fields, query, path identifier or missing Idempotency-Key.
401
Missing, invalid, revoked or expired organization API token; its issuing actor must still be the current organization owner.
403
Token scope or actor capability denied, disabled/banned account, or action unavailable.
404
Unknown route or resource not accessible in the bound organization. Cross-tenant resources are not enumerated.
409
Conflicting profile/rental state, duplicate resource, idempotency payload mismatch or operation still in progress.
410
event_cursor_expired: the event cursor is behind retained history. Reconcile current resources and start from the supplied recovery cursor.
422
Business validation/moderation rejected the operation. CHAT_MESSAGE_BLOCKED was not delivered.
429
API rate/concurrency limit exceeded; use backoff and Retry-After when present.
500
Internal operation error. Sensitive implementation details are not returned. Investigate using the request ID before repeating a write.
503
Provider or configuration unavailable; uncertain writes must retain the same Idempotency-Key.

Example responses are illustrative. Try live request sends a request to the API and shows its actual status and response. Your token scopes, organization permissions and the current state of the resource determine what the server allows.

Financial fields named ...Cents or ...InCents use integer cents. Path fields and nested constraints are shown above and in the downloadable OpenAPI contract.

Remove and disconnect

Remove a record, revoke access or end a connection.

Delete a rule templateDeletion result.DELETE/rule-templates/:id
Token scope profiles:writeActor permission memberAction type destructive

Send Idempotency-Key. Retry the same intended action with the same key and exact payload to retrieve its saved result.

Path parameters

FieldTypeDescription and constraints
idRequiredstring · uuid

Resource UUID scoped to the current organization.

Example response

Illustrative · HTTP 200

Sample values from the response schema. No API request is sent.

{
  "success": false
}
To see your organization’s actual response, use an API key.

What you receive

Deletion result.

Request example · cURL

Replace example IDs and values. Supply the token from your secret store. Each intended write uses one stable $ACTION_KEY.

curl -X DELETE "$BASE/rule-templates/$ID" \
  -H "Authorization: Bearer $ALLPROFILES_API_TOKEN" \
  -H "Idempotency-Key: $ACTION_KEY"
Success response schema · HTTP 200
{
  "application/json": {
    "schema": {
      "type": "object",
      "properties": {
        "success": {
          "type": "boolean"
        }
      },
      "required": [
        "success"
      ],
      "additionalProperties": true
    }
  }
}
Errors and recovery
400
Invalid JSON, request fields, query, path identifier or missing Idempotency-Key.
401
Missing, invalid, revoked or expired organization API token; its issuing actor must still be the current organization owner.
403
Token scope or actor capability denied, disabled/banned account, or action unavailable.
404
Unknown route or resource not accessible in the bound organization. Cross-tenant resources are not enumerated.
409
Conflicting profile/rental state, duplicate resource, idempotency payload mismatch or operation still in progress.
410
event_cursor_expired: the event cursor is behind retained history. Reconcile current resources and start from the supplied recovery cursor.
422
Business validation/moderation rejected the operation. CHAT_MESSAGE_BLOCKED was not delivered.
429
API rate/concurrency limit exceeded; use backoff and Retry-After when present.
500
Internal operation error. Sensitive implementation details are not returned. Investigate using the request ID before repeating a write.
503
Provider or configuration unavailable; uncertain writes must retain the same Idempotency-Key.

Example responses are illustrative. Try live request sends a request to the API and shows its actual status and response. Your token scopes, organization permissions and the current state of the resource determine what the server allows.

Financial fields named ...Cents or ...InCents use integer cents. Path fields and nested constraints are shown above and in the downloadable OpenAPI contract.

AllProfiles organization API · v1.0Download specification

LinkedIn is a trademark of LinkedIn Corporation. AllProfiles is not affiliated with, endorsed by, or sponsored by LinkedIn.