---
updatedAt: 2026-11-10T17:49:36.000Z
agentTools:
  projectIndex: https://developers.activecampaign.com/llms.txt
---

# List all schemas

Retrieve all schemas available within an account.

Users are encouraged to leverage the `?showFields=all` query parameter when programmatically creating new schema fields, to ensure field id uniqueness. Fields that have been deleted will contain a `status: marked_for_deletion` attribute.

```json GET /customObjects/schemas (Example RESPONSE)
{
  "schemas": [
    {
      "id": "6449c3f3-b68d-46d1-850b-c8aea998ce1b",
      "slug": "my-object",
      "visibility": "private",
      "labels": {
        "singular": "My Object",
        "plural": "My Objects"
      },
      "description": "Sample Schema",
      "createdTimestamp": "2021-04-16T15:08:25.783751329Z",
      "updatedTimestamp": "2021-04-16T15:08:25.783751329Z",
      "fields": [
        {
          "id": "my-number-field",
          "labels": {
            "singular": "Number",
            "plural": "Numbers"
          },
          "type": "number",
          "required": false,
          "scale": 0
        }
      ],
      "icons": {
        "default": "https://d226aj4ao1t61q.cloudfront.net/n9mayqo2d_customobject.png"
      },
      "relationships": [
        {
          "id": "primary-contact",
          "labels": {
            "singular": "Primary Contact",
            "plural": "Primary Contacts"
          },
          "description": "Primary contact to this object",
          "namespace": "contacts",
          "hasMany": false
        }
      ]
    }
  ],
  "meta": {
    "total": 1,
    "count": 1,
    "limit": 20,
    "offset": 0
  }
}
```

## Filtering schemas

Filtering by contact relationships:

```http
filters[relationships.id][eq]=primary-contact&filters[relationships.namespace][eq]=contacts
```

Filtering by account relationships:

```http
filters[relationships.id][eq]=account&filters[relationships.namespace][eq]=accounts
```

Filtering by deal relationships:

```http
filters[relationships.id][eq]=deal&filters[relationships.namespace][eq]=deals
```

[Click here](#paging-ordering-sorting-and-filtering) for more information on paging, ordering, sorting, and filtering.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "v3",
    "version": "3"
  },
  "servers": [
    {
      "url": "https://{youraccountname}.api-us1.com/api/3",
      "variables": {
        "youraccountname": {
          "default": "youraccountname"
        }
      }
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "name": "Api-Token",
        "in": "header",
        "x-default": ""
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/customObjects/schemas": {
      "get": {
        "summary": "List all schemas",
        "description": "Retrieve all schemas available within an account.\n\nUsers are encouraged to leverage the `?showFields=all` query parameter when programmatically creating new schema fields, to ensure field id uniqueness. Fields that have been deleted will contain a `status: marked_for_deletion` attribute.",
        "operationId": "list-all-schemas",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "description": "The number of schemas to retrieve for each API call. Maximum value is 100.",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 20
            }
          },
          {
            "name": "offset",
            "in": "query",
            "description": "Offset index of items to return",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          },
          {
            "name": "orders",
            "in": "query",
            "description": "Array of sorting criteria to fetch items",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "filters",
            "in": "query",
            "description": "Filters schemas by different criteria",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "showFields",
            "in": "query",
            "description": "Toggle which fields are shown in the response body of a schema (if there hidden due to e.g. recently being deleted). Omit this parameter entirely to hide fields by default.",
            "schema": {
              "type": "string",
              "default": "all"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"schemas\": [\n    {\n      \"id\": \"6449c3f3-b68d-46d1-850b-c8aea998ce1b\",\n      \"slug\": \"my-object\",\n      \"visibility\": \"private\",\n      \"labels\": {\n        \"singular\": \"My Object\",\n        \"plural\": \"My Objects\"\n      },\n      \"description\": \"Sample Schema\",\n      \"createdTimestamp\": \"2021-04-16T15:08:25.783751329Z\",\n      \"updatedTimestamp\": \"2021-04-16T15:08:25.783751329Z\",\n      \"fields\": [\n        {\n          \"id\": \"my-number-field\",\n          \"labels\": {\n            \"singular\": \"Number\",\n            \"plural\": \"Numbers\"\n          },\n          \"type\": \"number\",\n          \"required\": false,\n          \"scale\": 0\n        }\n      ],\n      \"icons\": {\n        \"default\": \"https://d226aj4ao1t61q.cloudfront.net/n9mayqo2d_customobject.png\"\n      },\n      \"relationships\": [\n        {\n          \"id\": \"primary-contact\",\n          \"labels\": {\n            \"singular\": \"Primary Contact\",\n            \"plural\": \"Primary Contacts\"\n          },\n          \"description\": \"Primary contact to this object\",\n          \"namespace\": \"contacts\",\n          \"hasMany\": false\n        }\n      ]\n    }\n  ],\n  \"meta\": {\n    \"total\": 1,\n    \"count\": 1,\n    \"limit\": 20,\n    \"offset\": 0\n  }\n}\n"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "schemas": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "example": "6449c3f3-b68d-46d1-850b-c8aea998ce1b"
                          },
                          "slug": {
                            "type": "string",
                            "example": "my-object"
                          },
                          "visibility": {
                            "type": "string",
                            "example": "private"
                          },
                          "labels": {
                            "type": "object",
                            "properties": {
                              "singular": {
                                "type": "string",
                                "example": "My Object"
                              },
                              "plural": {
                                "type": "string",
                                "example": "My Objects"
                              }
                            }
                          },
                          "description": {
                            "type": "string",
                            "example": "Sample Schema"
                          },
                          "createdTimestamp": {
                            "type": "string",
                            "example": "2021-04-16T15:08:25.783751329Z"
                          },
                          "updatedTimestamp": {
                            "type": "string",
                            "example": "2021-04-16T15:08:25.783751329Z"
                          },
                          "fields": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "example": "my-number-field"
                                },
                                "labels": {
                                  "type": "object",
                                  "properties": {
                                    "singular": {
                                      "type": "string",
                                      "example": "Number"
                                    },
                                    "plural": {
                                      "type": "string",
                                      "example": "Numbers"
                                    }
                                  }
                                },
                                "type": {
                                  "type": "string",
                                  "example": "number"
                                },
                                "required": {
                                  "type": "boolean",
                                  "example": false,
                                  "default": true
                                },
                                "scale": {
                                  "type": "integer",
                                  "example": 0,
                                  "default": 0
                                }
                              }
                            }
                          },
                          "icons": {
                            "type": "object",
                            "properties": {
                              "default": {
                                "type": "string",
                                "example": "https://d226aj4ao1t61q.cloudfront.net/n9mayqo2d_customobject.png"
                              }
                            }
                          },
                          "relationships": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "example": "primary-contact"
                                },
                                "labels": {
                                  "type": "object",
                                  "properties": {
                                    "singular": {
                                      "type": "string",
                                      "example": "Primary Contact"
                                    },
                                    "plural": {
                                      "type": "string",
                                      "example": "Primary Contacts"
                                    }
                                  }
                                },
                                "description": {
                                  "type": "string",
                                  "example": "Primary contact to this object"
                                },
                                "namespace": {
                                  "type": "string",
                                  "example": "contacts"
                                },
                                "hasMany": {
                                  "type": "boolean",
                                  "example": false,
                                  "default": true
                                }
                              }
                            }
                          }
                        }
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "total": {
                          "type": "integer",
                          "example": 1,
                          "default": 0
                        },
                        "count": {
                          "type": "integer",
                          "example": 1,
                          "default": 0
                        },
                        "limit": {
                          "type": "integer",
                          "example": 20,
                          "default": 0
                        },
                        "offset": {
                          "type": "integer",
                          "example": 0,
                          "default": 0
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": false,
    "proxy-enabled": false
  },
  "x-readme-fauxas": true
}
```