Base URL
All Target Form API requests use:Authentication
All endpoints require a valid 1eye API key.$API_KEY as the environment variable containing your API key.
For more information, see Authentication.
Endpoints
All endpoints return JSON responses, except DELETE, which returns no response body.
Target Form Object
A Target Form identifies a website form associated with meaningful buying intent. For example, Snowbricks, a fictional cloud data and AI platform, might track demo requests submitted through its website.Fields
Example Target Form
System-Managed Fields
These fields are read-only.
1. List Target Forms
GET /v1/kb/target-forms
Retrieve a paginated list of Target Forms configured in your workspace.
Query Parameters
Example Request
Example Response
200 OKPagination
When additional results exist, usepagination.next_cursor to retrieve the next page.
null cursor indicates that no further results are available.
See Pagination.
Behavior
- Returns Target Forms belonging to the authenticated workspace.
- Excludes deleted records.
- Supports cursor-based pagination.
- Returns an empty
dataarray when no records exist.
2. Retrieve a Target Form
GET /v1/kb/target-forms/{id}
Retrieve a specific Target Form using its unique identifier.
Path Parameters
Example Request
Example Response
200 OKBehavior
- Returns the complete Target Form record.
- Includes applicable system metadata.
- Returns
404 Not Foundif the form does not exist, has been deleted, or belongs to another workspace.
3. Create a Target Form
POST /v1/kb/target-forms
Create a new Target Form in your workspace.
Request Body
Example Request
Example Response
201 CreatedBehavior
When a Target Form is created:- 1eye generates a unique identifier.
- The Target Form is associated with the workspace.
- It appears in the Knowledge Base.
- It becomes available for future Website Signals processing.
- It can be retrieved or updated through the API.
Validation
- All four fields must contain valid values.
short_namemust be unique among active Target Forms in the workspace.urlmust identify a valid website location.- System-managed fields cannot be supplied.
4. Update a Target Form
PATCH /v1/kb/target-forms/{id}
Update an existing Target Form.
Only fields included in the request are modified.
Request Body
At least one editable field must be supplied.
Example Request
Example Response
200 OKBehavior
- Supports partial updates.
- Preserves omitted fields.
- Maintains the original resource identifier.
- Reflects changes in the Console.
- Uses the updated configuration for future processing.
- Does not retroactively reprocess historical form submissions.
5. Delete a Target Form
DELETE /v1/kb/target-forms/{id}
Delete a Target Form from your workspace.
Deletion performs a soft delete.
Example Request
Response
204 No Content The response body is empty.What Happens When a Target Form Is Deleted?
- The Target Form is removed from the active Knowledge Base.
- It is excluded from future Target Form matching.
- It no longer appears in List Target Forms.
- Retrieving the deleted record returns
404 Not Found. - Historical form-submission Signals remain preserved.
6. Form Detection & URL Matching
Form Detection
Target Forms identify actual form-submission activity. For example, a visitor to:- Visit the demo page.
- Fill in a form.
- Submit the form.
URL Matching
Target Forms use exact matching against a normalized canonical URL. 1eye handles URL normalization automatically. For example:match_type field.
A separate domain field is not required because the domain is derived from the URL.
Target Page vs. Target Form
A visitor may generate a Target Page event without generating a Target Form event.
7. Error Handling
All Target Form endpoints use the standard 1eye API error format.Example Error
404 Not Found8. Pagination & Rate Limits
List Target Forms supports cursor-based pagination.- Default page size: 100.
- Maximum page size: 1,000.
cursorretrieves subsequent pages.next_cursor: nullindicates the end of the collection.
9. How Target Forms Affect Website Signals
Target Forms help 1eye recognize high-intent website conversion activity. For Snowbricks, examples include:Knowledge Base Integration
Console Synchronization
All changes made through the API are reflected in the 1eye Console, and vice versa.10. Best Practices
Track High-Intent Forms
Prioritize forms indicating meaningful customer interest. Examples:- Demo requests.
- Contact Sales.
- Enterprise trial requests.
- Technical evaluations.