---
updatedAt: 2026-04-24T16:40:21.000Z
agentTools:
  projectIndex: https://developers.cloudbeds.com/llms.txt
---

# List all profiles across all types

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Group Profile API",
    "version": "1.0.0",
    "description": "API for managing group profiles, contact persons, and related operations"
  },
  "tags": [
    {
      "name": "Profile",
      "description": "Unified Profile API for all profile types (Company, Group, Travel Agent)"
    }
  ],
  "servers": [
    {
      "url": "https://api.cloudbeds.com"
    }
  ],
  "paths": {
    "/group-profile/v1/profiles": {
      "get": {
        "summary": "List all profiles across all types",
        "operationId": "listAllProfiles",
        "tags": [
          "Profile"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/xPropertyId"
          },
          {
            "$ref": "#/components/parameters/xOrganizationId"
          },
          {
            "$ref": "#/components/parameters/profileIds"
          },
          {
            "$ref": "#/components/parameters/status"
          },
          {
            "$ref": "#/components/parameters/profileType"
          },
          {
            "$ref": "#/components/parameters/name"
          },
          {
            "$ref": "#/components/parameters/code"
          },
          {
            "$ref": "#/components/parameters/sort"
          },
          {
            "$ref": "#/components/parameters/pageToken"
          },
          {
            "$ref": "#/components/parameters/limit"
          }
        ],
        "responses": {
          "200": {
            "description": "List all profiles successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProfileListResponse"
                },
                "example": {
                  "data": [
                    {
                      "id": "19074818619469856",
                      "code": "ACME001",
                      "name": "Acme Corporation",
                      "status": "ACTIVE",
                      "profileType": "COMPANY"
                    },
                    {
                      "id": "19074818619469857",
                      "code": "GRP-WEDDING-2024",
                      "name": "Smith-Johnson Wedding",
                      "status": "ACTIVE",
                      "profileType": "GROUP"
                    }
                  ],
                  "nextPageToken": "eyJmaWVsZHMiOlt7InBhdGgiOlsibmFtZSJdLCJ2YWx1ZSI6IlNtaXRoLUpvaG5zb24gV2VkZGluZyJ9XX0="
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    },
    "parameters": {
      "profileIds": {
        "name": "profileIds",
        "in": "query",
        "description": "Filter profiles by specific IDs (comma-separated list)",
        "required": false,
        "schema": {
          "type": "array",
          "items": {
            "type": "integer",
            "format": "int64"
          }
        },
        "style": "form",
        "explode": false
      },
      "status": {
        "name": "status",
        "in": "query",
        "description": "Filter by profile status",
        "required": false,
        "schema": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/ProfileStatus"
          }
        },
        "style": "form",
        "explode": false
      },
      "profileType": {
        "name": "profileType",
        "in": "query",
        "description": "Filter by profile types (supports multiple selections)",
        "required": false,
        "schema": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/ProfileType"
          }
        },
        "style": "form",
        "explode": false
      },
      "xPropertyId": {
        "name": "x-property-id",
        "in": "header",
        "description": "Property ID",
        "required": false,
        "schema": {
          "type": "integer",
          "format": "int64"
        }
      },
      "xOrganizationId": {
        "name": "x-organization-id",
        "in": "header",
        "description": "Organization ID",
        "required": true,
        "schema": {
          "type": "integer",
          "format": "int64"
        }
      },
      "pageToken": {
        "name": "pageToken",
        "in": "query",
        "description": "Cursor token for pagination. Use the `nextPageToken` from the previous response to fetch the next page.\n\n**Usage:**\n- Omit or pass empty string for the first page\n- Pass the `nextPageToken` from previous response for subsequent pages\n- When `nextPageToken` is null in the response, you've reached the last page\n\n**Benefits over offset-based pagination:**\n- Consistent results even when data changes between requests\n- Better performance for large datasets (no row skipping)\n- No maximum page limit\n",
        "required": false,
        "schema": {
          "type": "string"
        },
        "example": ""
      },
      "limit": {
        "name": "limit",
        "in": "query",
        "description": "Page size. Specifies the maximum number of items to return in a single response.\n\n**Limits:**\n- Minimum: 1\n- Maximum: 500\n- Default: 100\n",
        "required": false,
        "schema": {
          "type": "integer",
          "minimum": 1,
          "maximum": 500,
          "default": 100
        },
        "example": 100
      },
      "name": {
        "name": "name",
        "in": "query",
        "description": "Filter profiles by name containing this text (case-insensitive partial match)",
        "required": false,
        "schema": {
          "type": "string",
          "minLength": 1,
          "maxLength": 255
        }
      },
      "code": {
        "name": "code",
        "in": "query",
        "description": "Filter profiles by code containing this text (case-insensitive partial match)",
        "required": false,
        "schema": {
          "type": "string",
          "minLength": 1,
          "maxLength": 12
        }
      },
      "sort": {
        "name": "sort",
        "in": "query",
        "description": "Sort profiles by field and direction in format: field:direction\nExamples: name:asc, createdAt:desc, code:asc\nValid fields: code, name, createdAt, updatedAt, profileType, status\nValid directions: asc, desc\nDefault: name:asc\n",
        "required": false,
        "schema": {
          "type": "string",
          "pattern": "^(code|name|createdAt|updatedAt|profileType|status):(asc|desc)$",
          "default": "name:asc"
        },
        "example": "name:asc"
      }
    },
    "schemas": {
      "CursorPagination": {
        "type": "object",
        "description": "Cursor-based pagination metadata for list responses",
        "properties": {
          "nextPageToken": {
            "type": "string",
            "nullable": true,
            "description": "Token to fetch the next page of results.\nPass this value as the `pageToken` query parameter in the next request.\nWhen null, there are no more pages available.\n"
          }
        }
      },
      "BaseProfile": {
        "type": "object",
        "required": [
          "name",
          "status",
          "code"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the profile",
            "example": "19074818619469856"
          },
          "profileType": {
            "$ref": "#/components/schemas/ProfileType"
          },
          "code": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "description": "Profile code (company code, group code, or IATA number for travel agents)"
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255,
            "description": "Profile name (company name, group name, or agency name)"
          },
          "status": {
            "$ref": "#/components/schemas/ProfileStatus"
          },
          "cellPhone": {
            "type": "string",
            "maxLength": 50,
            "pattern": "^[+]?[0-9\\s\\-().]+$",
            "description": "Cell phone number"
          },
          "phone": {
            "type": "string",
            "maxLength": 50,
            "pattern": "^[+]?[0-9\\s\\-().]+$",
            "description": "Primary phone number"
          },
          "email": {
            "type": "string",
            "format": "email",
            "maxLength": 255,
            "description": "Primary email address"
          },
          "externalCrmId": {
            "type": "string",
            "maxLength": 100,
            "description": "External CRM system reference ID"
          },
          "optIn": {
            "type": "boolean",
            "description": "Opt-in status"
          },
          "optInType": {
            "type": "string",
            "enum": [
              "MARKETING",
              "TRANSACTIONAL"
            ],
            "description": "Type of opt-in"
          },
          "optInMethods": {
            "type": "string",
            "enum": [
              "EMAIL",
              "SMS",
              "NOTIFICATION"
            ],
            "description": "Opt-in communication method"
          },
          "address": {
            "$ref": "#/components/schemas/Address"
          },
          "useBillingAsMainAddress": {
            "type": "boolean",
            "default": false,
            "description": "When true, use billing address as the main address instead of the address field"
          },
          "billingDetails": {
            "$ref": "#/components/schemas/BillingDetails"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "Creation timestamp"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Last update timestamp"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "groupProfile": {
                "$ref": "#/components/schemas/GroupProfile"
              },
              "companyProfile": {
                "$ref": "#/components/schemas/CompanyProfile"
              },
              "travelAgentProfile": {
                "$ref": "#/components/schemas/TravelAgentProfile"
              }
            },
            "description": "Dictionary containing profile-specific data (groupProfile, companyProfile, or travelAgentProfile). Only one profile type should be present."
          }
        }
      },
      "GroupProfile": {
        "type": "object",
        "properties": {
          "groupType": {
            "type": "string",
            "enum": [
              "WEDDING",
              "SOCIAL",
              "SMERF",
              "CORPORATE",
              "ASSOCIATION",
              "EDUCATION",
              "MEETING",
              "CONFERENCE",
              "MICE",
              "EXHIBITIONS",
              "INCENTIVE",
              "OTHER"
            ],
            "description": "Type of group"
          },
          "groupId": {
            "type": "string",
            "maxLength": 100,
            "description": "Unique group identifier"
          },
          "cutOffDate": {
            "type": "string",
            "format": "date",
            "description": "Booking cut-off date"
          },
          "internalSalesManager": {
            "type": "string",
            "description": "Internal sales manager name"
          },
          "specialRequirements": {
            "type": "string",
            "description": "Special requirements or notes"
          },
          "roomNightCommitment": {
            "type": "integer",
            "minimum": 0,
            "description": "Room night commitment"
          },
          "roomNightType": {
            "type": "string",
            "enum": [
              "USD",
              "PERCENTAGE",
              "NUMBER"
            ],
            "description": "Type of room night commitment (USD, Percentage, or Number)"
          }
        }
      },
      "CompanyProfile": {
        "type": "object",
        "properties": {
          "companyType": {
            "$ref": "#/components/schemas/CompanyType"
          },
          "parentCompanyId": {
            "type": "integer",
            "format": "int64",
            "description": "Parent company ID if this is a subsidiary"
          },
          "website": {
            "type": "string",
            "description": "Company website URL"
          },
          "contractStartDate": {
            "type": "string",
            "format": "date",
            "description": "Contract start date"
          },
          "contractEndDate": {
            "type": "string",
            "format": "date",
            "description": "Contract end date"
          },
          "roomNightCommitment": {
            "type": "integer",
            "minimum": 0,
            "description": "Annual room night commitment"
          },
          "roomNightType": {
            "type": "string",
            "enum": [
              "USD",
              "PERCENTAGE",
              "NUMBER"
            ],
            "description": "Type of room night commitment (USD, Percentage, or Number)"
          }
        }
      },
      "TravelAgentProfile": {
        "type": "object",
        "properties": {
          "agencyId": {
            "type": "string",
            "maxLength": 50,
            "description": "Agency identifier"
          },
          "agencyType": {
            "$ref": "#/components/schemas/AgencyType"
          },
          "commissionable": {
            "type": "boolean",
            "description": "Whether this agent is eligible for commission"
          },
          "commissionType": {
            "type": "string",
            "enum": [
              "PERCENTAGE",
              "FLAT_RATE"
            ],
            "description": "Type of commission (Percentage or Flat Rate)"
          },
          "commissionAmount": {
            "type": "number",
            "description": "Commission amount (percentage or flat rate value)"
          },
          "commissionTerms": {
            "type": "string",
            "description": "Terms of commission payout"
          },
          "commissionCalculation": {
            "type": "string",
            "enum": [
              "CHECK_IN",
              "CHECK_OUT",
              "INCLUDED_IN_RATE",
              "NOT_INCLUDED_IN_RATE",
              "NA"
            ],
            "description": "When commission is calculated"
          }
        }
      },
      "ProfileResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BaseProfile"
          },
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "Unique identifier for the profile",
                "example": "19074818619469856"
              }
            }
          }
        ]
      },
      "ProfileListResponse": {
        "allOf": [
          {
            "type": "object",
            "properties": {
              "data": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ProfileResponse"
                },
                "description": "Array of profile data"
              }
            }
          },
          {
            "$ref": "#/components/schemas/CursorPagination"
          }
        ]
      },
      "BillingDetails": {
        "type": "object",
        "description": "Billing details for profiles and contact persons",
        "properties": {
          "billingEntity": {
            "type": "boolean",
            "description": "Whether this is a billing entity"
          },
          "legalName": {
            "type": "string",
            "maxLength": 255,
            "description": "Legal name for billing purposes"
          },
          "billingEmail": {
            "type": "string",
            "format": "email",
            "maxLength": 255,
            "description": "Billing email address"
          },
          "billingAddress": {
            "$ref": "#/components/schemas/Address"
          },
          "billingCurrency": {
            "type": "string",
            "minLength": 3,
            "maxLength": 3,
            "pattern": "^[A-Z]{3}$",
            "description": "Billing currency code (ISO 4217 - 3 uppercase letters, e.g., USD, EUR, GBP)",
            "example": "USD"
          },
          "paymentMethod": {
            "$ref": "#/components/schemas/PaymentMethod"
          },
          "billingInstructions": {
            "type": "string",
            "description": "Special billing instructions"
          },
          "invoiceRecipientEmail": {
            "type": "string",
            "format": "email",
            "maxLength": 255,
            "description": "Email address for invoice delivery"
          },
          "creditLimit": {
            "type": "number",
            "description": "Credit limit amount"
          },
          "taxId": {
            "type": "string",
            "maxLength": 100,
            "description": "Tax identification number"
          },
          "billingFrequency": {
            "$ref": "#/components/schemas/BillingFrequency"
          },
          "invoiceDueDays": {
            "type": "integer",
            "minimum": 0,
            "description": "Number of days until invoice is due"
          }
        }
      },
      "Address": {
        "type": "object",
        "description": "Flexible address object with country-specific fields.\nThe countryCode determines the expected address format.\nAll address fields except id and countryCode are stored as dynamic properties.\nCommon fields include: address1, address2, street, number, city, state, zip, etc.\n",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64",
            "description": "Unique identifier for the address",
            "readOnly": true
          },
          "countryCode": {
            "type": "string",
            "minLength": 2,
            "maxLength": 2,
            "pattern": "^[A-Z]{2}$",
            "description": "ISO 3166-1 alpha-2 country code (determines address format)"
          }
        },
        "additionalProperties": true
      },
      "ProfileStatus": {
        "type": "string",
        "enum": [
          "PENDING",
          "ACTIVE",
          "INACTIVE",
          "CANCELLED",
          "ARCHIVED"
        ],
        "description": "Profile status",
        "example": "ACTIVE"
      },
      "ProfileType": {
        "type": "string",
        "enum": [
          "COMPANY",
          "GROUP",
          "TRAVEL_AGENT"
        ],
        "description": "Profile type"
      },
      "PaymentMethod": {
        "type": "string",
        "enum": [
          "DIRECT_BILL",
          "CASH",
          "CHECK",
          "CREDIT_CARD",
          "DEBIT_CARD",
          "VOUCHER",
          "PAY_BY_LINK",
          "THIRD_PARTY_PAYMENT"
        ],
        "description": "Payment method. Allowed values are DIRECT_BILL, CASH, CHECK, CREDIT_CARD, DEBIT_CARD, VOUCHER, PAY_BY_LINK, THIRD_PARTY_PAYMENT",
        "example": "CREDIT_CARD"
      },
      "BillingFrequency": {
        "type": "string",
        "enum": [
          "PER_STAY",
          "WEEKLY",
          "MONTHLY",
          "ON_DEMAND"
        ],
        "description": "Billing frequency. Allowed values are PER_STAY, WEEKLY, MONTHLY, ON_DEMAND",
        "example": "MONTHLY"
      },
      "CompanyType": {
        "type": "string",
        "enum": [
          "CORPORATE",
          "SME",
          "NON_PROFIT",
          "ENTERPRISE",
          "GOVERNMENT",
          "ASSOCIATION",
          "LOCAL",
          "B2B",
          "PARTNERSHIP",
          "OTHER"
        ],
        "description": "Company type. Allowed values are CORPORATE, SME, NON_PROFIT, ENTERPRISE, GOVERNMENT, ASSOCIATION, LOCAL, B2B, PARTNERSHIP, OTHER",
        "example": "CORPORATE"
      },
      "AgencyType": {
        "type": "string",
        "enum": [
          "OTA",
          "RETAIL",
          "CORPORATE_AGENT",
          "CONSORTIA",
          "WHOLESALER",
          "GROUP_TOUR",
          "TOUR_OPERATOR",
          "DOMESTIC",
          "FOREIGN",
          "OTHER"
        ],
        "description": "Travel agency type. Allowed values are OTA, RETAIL, CORPORATE_AGENT, CONSORTIA, WHOLESALER, GROUP_TOUR, TOUR_OPERATOR, DOMESTIC, FOREIGN, OTHER",
        "example": "RETAIL"
      },
      "ApiError": {
        "type": "object",
        "description": "Standard error response for 4xx and 5xx errors (except validation errors).\n\n## Error Codes\n\n### Validation Errors (400)\n- `INVALID_REQUEST` - The request body is invalid or malformed\n- `INVALID_PARAMETER` - One or more request parameters are invalid\n- `INVALID_ENUM_VALUE` - Invalid enum value provided\n- `INVALID_JSON` - The request body contains malformed JSON\n\n### Resource Errors (404)\n- `RESOURCE_NOT_FOUND` - The requested resource was not found\n- `PROFILE_NOT_FOUND` - Profile not found\n- `NOTE_NOT_FOUND` - Note not found\n- `TAG_NOT_FOUND` - Tag not found\n\n### Conflict Errors (409)\n- `RESOURCE_ALREADY_EXISTS` - The resource already exists\n- `DUPLICATE_PROFILE_CODE` - A profile with this code already exists\n- `DUPLICATE_RELATIONSHIP` - This relationship already exists\n\n### Authorization Errors (403)\n- `ACCESS_DENIED` - Access denied to the requested resource\n- `ORGANIZATION_MISMATCH` - Resource belongs to a different organization\n\n### Server Errors (500)\n- `INTERNAL_ERROR` - An unexpected error occurred\n- `DATABASE_ERROR` - A database error occurred\n",
        "properties": {
          "message": {
            "type": "string",
            "description": "Human-readable error message explaining what went wrong",
            "example": "A profile with this code already exists. Please use a unique code."
          },
          "code": {
            "type": "string",
            "description": "Machine-readable error code for programmatic error handling",
            "example": "DUPLICATE_PROFILE_CODE"
          },
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "description": "ISO 8601 timestamp when the error occurred",
            "example": "2024-01-15T10:30:45.123Z"
          }
        }
      }
    }
  }
}
```