---
agentTools:
  projectIndex: https://docs.xkit.co/llms.txt
---

# Get CRM OBJECT Schema

Returns the JSON Schema of the CRM OBJECT.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "0.0.1",
    "title": "CRM API"
  },
  "servers": [
    {
      "url": "https://app.xkit.co",
      "description": "Production environment"
    }
  ],
  "externalDocs": {
    "url": "https://docs.xkit.co/reference"
  },
  "paths": {
    "/api/v1/crm/{connection_id}/objects/{object_slug}/schema": {
      "get": {
        "operationId": "Get Schema",
        "tags": [
          "Get Schema"
        ],
        "summary": "Get CRM OBJECT Schema",
        "description": "Returns the JSON Schema of the CRM OBJECT.",
        "parameters": [
          {
            "$ref": "#/components/parameters/ConnectionId"
          },
          {
            "$ref": "#/components/parameters/ObjectSlug"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/Schema"
          },
          "default": {
            "$ref": "#/components/responses/ApiError"
          }
        }
      }
    }
  },
  "components": {
    "parameters": {
      "ConnectionId": {
        "name": "connection_id",
        "description": "The CONNECTION id of the integration",
        "in": "path",
        "required": true,
        "schema": {
          "type": "string"
        }
      },
      "ObjectSlug": {
        "name": "object_slug",
        "description": "The CRM OBJECT slug setup in the DEV PORTAL",
        "in": "path",
        "required": true,
        "schema": {
          "type": "string"
        }
      }
    },
    "schemas": {
      "SchemaResponse": {
        "type": "object",
        "required": [
          "schema"
        ],
        "properties": {
          "schema": {
            "title": "JSON Schema",
            "description": "The JSON SCHEMA of this object in the CRM",
            "type": "object"
          }
        }
      },
      "ApiError": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "title": "Error Object",
            "description": "An object representing the error. It is returned on every non-successful HTTP status codes.",
            "type": "object",
            "required": [
              "code",
              "message"
            ],
            "properties": {
              "code": {
                "title": "Error Code",
                "description": "A string representation of the error code. Codes are part of a limited set and can be used for error handling.",
                "type": "string"
              },
              "message": {
                "title": "Error message",
                "description": "An arbitrary message with that include more details about the error.",
                "type": "string"
              }
            }
          }
        }
      }
    },
    "responses": {
      "ApiError": {
        "description": "Sample response: Error Response",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ApiError"
            }
          }
        }
      },
      "Schema": {
        "description": "Sample response: CRM OBJECT JSON Schema Response",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/SchemaResponse"
            }
          }
        }
      }
    },
    "securitySchemes": {
      "BasicAuth": {
        "type": "http",
        "scheme": "basic"
      }
    }
  },
  "security": [
    {
      "BasicAuth": []
    }
  ],
  "tags": [
    {
      "name": "Get Schema"
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 98,
      "1": 241,
      "2": 39,
      "3": 42,
      "4": 3,
      "5": 237,
      "6": 155,
      "7": 3,
      "8": 242,
      "9": 188,
      "10": 217,
      "11": 73
    }
  }
}
```