---
updatedAt: 2026-05-06T14:37:32.000Z
agentTools:
  projectIndex: https://developers.campaignrefinery.com/llms.txt
---

# Add Form to Contact

Attaches a form to a contact in the authenticated account. Both `id` (contact UUID) and `form_id` (form UUID) must belong to the authenticated account; if either does not exist, the endpoint returns 404.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Contacts",
    "version": "1.2.0",
    "description": "Create, update, retrieve, and organize contacts in your Campaign Refinery account. Contacts are addressed by `contact_uuid` or email depending on the endpoint. Start here when you need to add subscribers, update profile fields, attach tags, or inspect a contact record."
  },
  "servers": [
    {
      "url": "https://api.campaignrefinery.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "Bearer token authentication"
      }
    }
  },
  "security": [],
  "paths": {
    "/rest/contacts/add_form": {
      "post": {
        "summary": "Add Form to Contact",
        "description": "Attaches a form to a contact in the authenticated account. Both `id` (contact UUID) and `form_id` (form UUID) must belong to the authenticated account; if either does not exist, the endpoint returns 404.",
        "operationId": "add-form",
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "id",
                  "form_id"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "Contact UUID. Must belong to the authenticated account."
                  },
                  "form_id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "Form UUID. Must belong to the authenticated account."
                  }
                }
              },
              "examples": {
                "Default": {
                  "summary": "Attach a form to a contact",
                  "value": {
                    "id": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
                    "form_id": "11111111-2222-3333-4444-555555555555"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Form added.",
            "content": {
              "application/json": {
                "example": {
                  "success": true,
                  "message": "Added new form",
                  "data": {
                    "id": "11111111-2222-3333-4444-555555555555"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid bearer token."
          },
          "404": {
            "description": "Contact or form does not exist in the authenticated account.",
            "content": {
              "application/json": {
                "example": {
                  "success": false,
                  "message": "Contact or form not found.",
                  "data": []
                }
              }
            }
          },
          "422": {
            "description": "Validation error. Common causes: missing/invalid `id` or `form_id` UUID.",
            "content": {
              "application/json": {
                "example": {
                  "success": false,
                  "message": "Validation failed.",
                  "data": {
                    "errors": {
                      "form_id": [
                        "Form UUID (form_id) is required."
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  }
}
```