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

# Create a contact request

Creates or updates a new lead in EasyBroker that is interested in the provided property.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "1.0",
    "title": "EasyBroker API",
    "description": "API for accessing and working with EasyBroker accounts. To get started click the Authorize button below and enter your API key."
  },
  "externalDocs": {
    "description": "View the getting started guide in Spanish",
    "url": "https://dev.easybroker.com/docs/api-de-easybroker"
  },
  "security": [
    {
      "ApiKeyAuth": []
    }
  ],
  "servers": [
    {
      "url": "https://api.easybroker.com/v1",
      "description": "API URL"
    }
  ],
  "paths": {
    "/contact_requests": {
      "post": {
        "tags": [
          "Contact Requests"
        ],
        "summary": "Create a contact request",
        "description": "Creates or updates a new lead in EasyBroker that is 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"
          },
          "404": {
            "description": "No property exists for the given property ID",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "example": "The specified property could not be found."
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "The request couldn't be created because it is invalid",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "example": "You must specify a name, email or phone number."
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "responses": {
      "UnauthorizedError": {
        "description": "API key is missing or invalid",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "error": {
                  "type": "string",
                  "example": "Your API key is invalid"
                }
              }
            }
          }
        }
      }
    },
    "schemas": {
      "ContactRequestBody": {
        "required": [
          "source"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "example": "John Smith",
            "description": "Required if the request does not provide a property_id"
          },
          "phone": {
            "type": "string",
            "example": "5559090909",
            "description": "Required if the request does not provide neither a property id nor an email"
          },
          "email": {
            "type": "string",
            "example": "mail@example.com",
            "description": "Required if the request does not provide neither a property id nor a phone number"
          },
          "property_id": {
            "type": "string",
            "example": "EB-XXXX01",
            "description": "If the request provides this parameter, it should also provide a name, email or phone number"
          },
          "message": {
            "type": "string",
            "example": "I'm interested in this property. Please contact me.",
            "description": "Required if the request does not provide a property_id"
          },
          "source": {
            "type": "string",
            "example": "mydomain.com"
          }
        }
      }
    },
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Authorization",
        "description": "You can find your API key in the general settings section of your EasyBroker account. It's only accessible for account administrators."
      }
    }
  }
}
```