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

# Find by person ID

Get all profile where person is the target (reverse lookup)

# 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": "ProfilePerson",
      "description": "Profile Person API (Profile-Guests/Contacts)"
    }
  ],
  "servers": [
    {
      "url": "https://api.cloudbeds.com"
    }
  ],
  "paths": {
    "/group-profile/v1/profiles/persons/{personId}": {
      "get": {
        "summary": "Find by person ID",
        "description": "Get all profile where person is the target (reverse lookup)",
        "operationId": "findByPersonId",
        "tags": [
          "ProfilePerson"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "personId",
            "in": "path",
            "description": "Person/Guest ID",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "personType",
            "in": "query",
            "description": "Type of person (CONTACT or GUEST) - required to uniquely identify the person",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/personType"
            }
          },
          {
            "$ref": "#/components/parameters/xPropertyId"
          },
          {
            "$ref": "#/components/parameters/xOrganizationId"
          },
          {
            "$ref": "#/components/parameters/pageToken"
          },
          {
            "$ref": "#/components/parameters/limit"
          }
        ],
        "responses": {
          "200": {
            "description": "Person found successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProfilePersonListResponse"
                }
              }
            }
          },
          "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": {
      "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
      }
    },
    "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"
          }
        }
      },
      "ProfilePersonResponse": {
        "type": "object",
        "properties": {
          "profileId": {
            "type": "string",
            "description": "ID of the profile entity (source)"
          },
          "personId": {
            "type": "string",
            "description": "ID of the person/guest (target)"
          },
          "personType": {
            "$ref": "#/components/schemas/personType"
          },
          "relationshipType": {
            "$ref": "#/components/schemas/relationshipType"
          },
          "isMainContact": {
            "type": "boolean",
            "description": "Whether this person is the main contact (applicable for CONTACT person type)"
          },
          "startDate": {
            "type": "string",
            "format": "date",
            "description": "Start date of the relationship"
          },
          "endDate": {
            "type": "string",
            "format": "date",
            "description": "End date of the relationship (null for active)"
          },
          "role": {
            "$ref": "#/components/schemas/contactRole"
          },
          "metadata": {
            "type": "object",
            "additionalProperties": true,
            "description": "Additional relationship metadata"
          }
        }
      },
      "ProfilePersonListResponse": {
        "allOf": [
          {
            "type": "object",
            "properties": {
              "data": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ProfilePersonResponse"
                },
                "description": "Array of profile person relationship data"
              }
            }
          },
          {
            "$ref": "#/components/schemas/CursorPagination"
          }
        ]
      },
      "personType": {
        "type": "string",
        "enum": [
          "CONTACT",
          "GUEST"
        ],
        "description": "Type of persons"
      },
      "contactRole": {
        "type": "string",
        "enum": [
          "BOOKING_COORDINATOR",
          "ONSITE_COORDINATOR",
          "ROOMING_LIST_CONTACT",
          "ACCOUNTS_PAYABLE",
          "BILLING",
          "INVOICING",
          "ACCOUNT_MANAGER",
          "SALES_LEAD",
          "TRAVEL_AGENT_ACCOUNT_MANAGER",
          "CORPORATE_CONTACT",
          "AUTHORIZED_SIGNER",
          "EXECUTIVE_APPROVER",
          "MARKETING",
          "MAIN_POINT_OF_CONTACT",
          "ADMINISTRATIVE",
          "OTHER"
        ],
        "description": "Role of person in the profile relationship",
        "example": "BOOKING_COORDINATOR"
      },
      "relationshipType": {
        "type": "string",
        "enum": [
          "EMPLOYEE",
          "BOOKED_BY",
          "PART_OF_GROUP",
          "CONTACT",
          "GUEST",
          "DECISION_MAKER",
          "TRAVELER",
          "PRIMARY",
          "SECONDARY",
          "BILLING_CONTACT",
          "EMERGENCY_CONTACT"
        ],
        "description": "Type of relationship between person and profile",
        "example": "PRIMARY"
      },
      "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"
          }
        }
      }
    }
  }
}
```