---
updatedAt: 2026-08-04T23:20:39.000Z
agentTools:
  projectIndex: https://dev.easybroker.com/llms.txt
---

# Create a contact request

Creates a new lead in EasyBroker interested in the provided property.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "1.0",
    "title": "App Integration API",
    "description": "API for EasyBroker's partners. To get started click the Authorize button below and enter your API key."
  },
  "security": [
    {
      "ApiKeyAuth": []
    }
  ],
  "servers": [
    {
      "url": "https://api.easybroker.com/v1/integration_partners",
      "description": "API URL"
    }
  ],
  "paths": {
    "/contact_requests": {
      "post": {
        "parameters": [
          {
            "$ref": "#/components/parameters/country_code"
          }
        ],
        "tags": [
          "Contact Requests"
        ],
        "summary": "Create a contact request",
        "description": "Creates a new lead in EasyBroker interested in the provided property.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContactRequestBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "A contact request was created",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "example": "successful"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "422": {
            "description": "The request couldn't be created because it is invalid",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "object",
                      "example": {
                        "message": [
                          "can't be blank"
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "responses": {
      "UnauthorizedError": {
        "description": "API key is missing or invalid, or a restricted country was selected",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "error": {
                  "type": "string",
                  "example": "Your API key is invalid."
                }
              }
            }
          }
        }
      }
    },
    "parameters": {
      "country_code": {
        "name": "Country-Code",
        "in": "header",
        "required": true,
        "description": "This header is mandatory and will be used to filter the resources",
        "schema": {
          "type": "string",
          "enum": [
            "MX",
            "CL",
            "DO",
            "AR",
            "CR",
            "PE"
          ],
          "example": "MX"
        }
      }
    },
    "schemas": {
      "ContactRequestBody": {
        "required": [
          "property_id",
          "message",
          "remote_id"
        ],
        "type": "object",
        "properties": {
          "property_id": {
            "type": "string",
            "example": "EB-XXXX01",
            "description": "Required. The EasyBroker property id related to the contact request"
          },
          "name": {
            "type": "string",
            "example": "John Smith",
            "description": "Optional. Requester's name."
          },
          "email": {
            "type": "string",
            "example": "mail@example.com",
            "description": "Required if phone is not present. Requester's email."
          },
          "phone": {
            "type": "string",
            "example": "5559090909",
            "description": "Required if email is not present. Requester's phone number."
          },
          "message": {
            "type": "string",
            "example": "I'm interested in this property. Please contact me.",
            "description": "Required. Message of the contact request."
          },
          "remote_id": {
            "type": "integer",
            "example": 123456,
            "description": "Required. A unique numeric id of the contact request from your website"
          }
        }
      }
    },
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Authorization",
        "description": "Keys for this API are only available for our partners."
      }
    }
  }
}
```