# Report the steps a filled form was filled with, for later runs to replay

The steps of one filled form, as the browser extension saw them: per page, the action, the name of the fact it wrote and the stable hooks that find the element. A step has no key for a value, a self-identification answer, a trap field or a list of hosts, and a body that carries one is refused. A run reports once; the steps are scrubbed again on the server and folded into the recipe for the form's site and ATS vendor, which later runs replay only after two runs have agreed. Does nothing when recipes are switched off. Requires authentication.

```http
POST https://hiresweep.com/api/openapi/applications/{applicationId}/fill/agent/recipe/sighting
x-api-key: YOUR_API_KEY
```

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `applicationId` | path | string | Yes |  |

## Request body

```json
{
  "type": "object",
  "properties": {
    "runId": {
      "type": "string",
      "minLength": 1,
      "description": "The ID of the run that filled the form."
    },
    "pages": {
      "type": "array",
      "minItems": 1,
      "maxItems": 30,
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 80
          },
          "gates": {
            "type": "array",
            "maxItems": 100,
            "items": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "action": {
                      "const": "assert"
                    },
                    "hooks": {
                      "type": "array",
                      "minItems": 1,
                      "maxItems": 8,
                      "items": {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "enum": [
                              "automationId",
                              "name",
                              "dataTest",
                              "dataQa",
                              "dataUi",
                              "ariaLabel",
                              "labelText",
                              "className",
                              "css",
                              "xpath"
                            ],
                            "type": "string"
                          },
                          "value": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 500
                          }
                        },
                        "required": [
                          "kind",
                          "value"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "target": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120
                    },
                    "timeoutMs": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 60000,
                      "exclusiveMinimum": 0
                    }
                  },
                  "required": [
                    "action",
                    "hooks"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "action": {
                      "const": "waitFor"
                    },
                    "hooks": {
                      "type": "array",
                      "minItems": 1,
                      "maxItems": 8,
                      "items": {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "enum": [
                              "automationId",
                              "name",
                              "dataTest",
                              "dataQa",
                              "dataUi",
                              "ariaLabel",
                              "labelText",
                              "className",
                              "css",
                              "xpath"
                            ],
                            "type": "string"
                          },
                          "value": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 500
                          }
                        },
                        "required": [
                          "kind",
                          "value"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "target": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120
                    },
                    "timeoutMs": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 60000,
                      "exclusiveMinimum": 0
                    }
                  },
                  "required": [
                    "action",
                    "hooks"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "action": {
                      "const": "handoff"
                    },
                    "hooks": {
                      "type": "array",
                      "minItems": 0,
                      "maxItems": 8,
                      "items": {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "enum": [
                              "automationId",
                              "name",
                              "dataTest",
                              "dataQa",
                              "dataUi",
                              "ariaLabel",
                              "labelText",
                              "className",
                              "css",
                              "xpath"
                            ],
                            "type": "string"
                          },
                          "value": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 500
                          }
                        },
                        "required": [
                          "kind",
                          "value"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "target": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120
                    },
                    "timeoutMs": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 60000,
                      "exclusiveMinimum": 0
                    },
                    "reason": {
                      "enum": [
                        "real-input",
                        "self-id",
                        "captcha",
                        "email-code",
                        "credential",
                        "identity-provider"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "action",
                    "hooks",
                    "reason"
                  ],
                  "additionalProperties": false
                }
              ]
            }
          },
          "fields": {
            "type": "array",
            "maxItems": 100,
            "items": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "action": {
                      "const": "pointerClick"
                    },
                    "hooks": {
                      "type": "array",
                      "minItems": 1,
                      "maxItems": 8,
                      "items": {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "enum": [
                              "automationId",
                              "name",
                              "dataTest",
                              "dataQa",
                              "dataUi",
                              "ariaLabel",
                              "labelText",
                              "className",
                              "css",
                              "xpath"
                            ],
                            "type": "string"
                          },
                          "value": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 500
                          }
                        },
                        "required": [
                          "kind",
                          "value"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "target": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120
                    },
                    "confirm": {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "enum": [
                            "automationId",
                            "name",
                            "dataTest",
                            "dataQa",
                            "dataUi",
                            "ariaLabel",
                            "labelText",
                            "className",
                            "css",
                            "xpath"
                          ],
                          "type": "string"
                        },
                        "value": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 500
                        }
                      },
                      "required": [
                        "kind",
                        "value"
                      ],
                      "additionalProperties": false
                    },
                    "timeoutMs": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 60000,
                      "exclusiveMinimum": 0
                    }
                  },
                  "required": [
                    "action",
                    "hooks"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "action": {
                      "const": "pick"
                    },
                    "hooks": {
                      "type": "array",
                      "minItems": 1,
                      "maxItems": 8,
                      "items": {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "enum": [
                              "automationId",
                              "name",
                              "dataTest",
                              "dataQa",
                              "dataUi",
                              "ariaLabel",
                              "labelText",
                              "className",
                              "css",
                              "xpath"
                            ],
                            "type": "string"
                          },
                          "value": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 500
                          }
                        },
                        "required": [
                          "kind",
                          "value"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "target": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120
                    },
                    "confirm": {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "enum": [
                            "automationId",
                            "name",
                            "dataTest",
                            "dataQa",
                            "dataUi",
                            "ariaLabel",
                            "labelText",
                            "className",
                            "css",
                            "xpath"
                          ],
                          "type": "string"
                        },
                        "value": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 500
                        }
                      },
                      "required": [
                        "kind",
                        "value"
                      ],
                      "additionalProperties": false
                    },
                    "timeoutMs": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 60000,
                      "exclusiveMinimum": 0
                    }
                  },
                  "required": [
                    "action",
                    "hooks"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "action": {
                      "const": "pickPath"
                    },
                    "hooks": {
                      "type": "array",
                      "minItems": 1,
                      "maxItems": 8,
                      "items": {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "enum": [
                              "automationId",
                              "name",
                              "dataTest",
                              "dataQa",
                              "dataUi",
                              "ariaLabel",
                              "labelText",
                              "className",
                              "css",
                              "xpath"
                            ],
                            "type": "string"
                          },
                          "value": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 500
                          }
                        },
                        "required": [
                          "kind",
                          "value"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "target": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120
                    },
                    "confirm": {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "enum": [
                            "automationId",
                            "name",
                            "dataTest",
                            "dataQa",
                            "dataUi",
                            "ariaLabel",
                            "labelText",
                            "className",
                            "css",
                            "xpath"
                          ],
                          "type": "string"
                        },
                        "value": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 500
                        }
                      },
                      "required": [
                        "kind",
                        "value"
                      ],
                      "additionalProperties": false
                    },
                    "timeoutMs": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 60000,
                      "exclusiveMinimum": 0
                    }
                  },
                  "required": [
                    "action",
                    "hooks"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "action": {
                      "const": "commitText"
                    },
                    "hooks": {
                      "type": "array",
                      "minItems": 1,
                      "maxItems": 8,
                      "items": {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "enum": [
                              "automationId",
                              "name",
                              "dataTest",
                              "dataQa",
                              "dataUi",
                              "ariaLabel",
                              "labelText",
                              "className",
                              "css",
                              "xpath"
                            ],
                            "type": "string"
                          },
                          "value": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 500
                          }
                        },
                        "required": [
                          "kind",
                          "value"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "target": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120
                    },
                    "confirm": {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "enum": [
                            "automationId",
                            "name",
                            "dataTest",
                            "dataQa",
                            "dataUi",
                            "ariaLabel",
                            "labelText",
                            "className",
                            "css",
                            "xpath"
                          ],
                          "type": "string"
                        },
                        "value": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 500
                        }
                      },
                      "required": [
                        "kind",
                        "value"
                      ],
                      "additionalProperties": false
                    },
                    "timeoutMs": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 60000,
                      "exclusiveMinimum": 0
                    }
                  },
                  "required": [
                    "action",
                    "hooks"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "action": {
                      "const": "setDateParts"
                    },
                    "hooks": {
                      "type": "array",
                      "minItems": 1,
                      "maxItems": 8,
                      "items": {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "enum": [
                              "automationId",
                              "name",
                              "dataTest",
                              "dataQa",
                              "dataUi",
                              "ariaLabel",
                              "labelText",
                              "className",
                              "css",
                              "xpath"
                            ],
                            "type": "string"
                          },
                          "value": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 500
                          }
                        },
                        "required": [
                          "kind",
                          "value"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "target": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120
                    },
                    "confirm": {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "enum": [
                            "automationId",
                            "name",
                            "dataTest",
                            "dataQa",
                            "dataUi",
                            "ariaLabel",
                            "labelText",
                            "className",
                            "css",
                            "xpath"
                          ],
                          "type": "string"
                        },
                        "value": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 500
                        }
                      },
                      "required": [
                        "kind",
                        "value"
                      ],
                      "additionalProperties": false
                    },
                    "timeoutMs": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 60000,
                      "exclusiveMinimum": 0
                    }
                  },
                  "required": [
                    "action",
                    "hooks"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "action": {
                      "const": "addRow"
                    },
                    "hooks": {
                      "type": "array",
                      "minItems": 1,
                      "maxItems": 8,
                      "items": {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "enum": [
                              "automationId",
                              "name",
                              "dataTest",
                              "dataQa",
                              "dataUi",
                              "ariaLabel",
                              "labelText",
                              "className",
                              "css",
                              "xpath"
                            ],
                            "type": "string"
                          },
                          "value": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 500
                          }
                        },
                        "required": [
                          "kind",
                          "value"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "target": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120
                    },
                    "confirm": {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "enum": [
                            "automationId",
                            "name",
                            "dataTest",
                            "dataQa",
                            "dataUi",
                            "ariaLabel",
                            "labelText",
                            "className",
                            "css",
                            "xpath"
                          ],
                          "type": "string"
                        },
                        "value": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 500
                        }
                      },
                      "required": [
                        "kind",
                        "value"
                      ],
                      "additionalProperties": false
                    },
                    "timeoutMs": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 60000,
                      "exclusiveMinimum": 0
                    }
                  },
                  "required": [
                    "action",
                    "hooks"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "action": {
                      "const": "waitFor"
                    },
                    "hooks": {
                      "type": "array",
                      "minItems": 1,
                      "maxItems": 8,
                      "items": {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "enum": [
                              "automationId",
                              "name",
                              "dataTest",
                              "dataQa",
                              "dataUi",
                              "ariaLabel",
                              "labelText",
                              "className",
                              "css",
                              "xpath"
                            ],
                            "type": "string"
                          },
                          "value": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 500
                          }
                        },
                        "required": [
                          "kind",
                          "value"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "target": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120
                    },
                    "confirm": {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "enum": [
                            "automationId",
                            "name",
                            "dataTest",
                            "dataQa",
                            "dataUi",
                            "ariaLabel",
                            "labelText",
                            "className",
                            "css",
                            "xpath"
                          ],
                          "type": "string"
                        },
                        "value": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 500
                        }
                      },
                      "required": [
                        "kind",
                        "value"
                      ],
                      "additionalProperties": false
                    },
                    "timeoutMs": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 60000,
                      "exclusiveMinimum": 0
                    }
                  },
                  "required": [
                    "action",
                    "hooks"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "action": {
                      "const": "assert"
                    },
                    "hooks": {
                      "type": "array",
                      "minItems": 1,
                      "maxItems": 8,
                      "items": {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "enum": [
                              "automationId",
                              "name",
                              "dataTest",
                              "dataQa",
                              "dataUi",
                              "ariaLabel",
                              "labelText",
                              "className",
                              "css",
                              "xpath"
                            ],
                            "type": "string"
                          },
                          "value": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 500
                          }
                        },
                        "required": [
                          "kind",
                          "value"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "target": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120
                    },
                    "confirm": {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "enum": [
                            "automationId",
                            "name",
                            "dataTest",
                            "dataQa",
                            "dataUi",
                            "ariaLabel",
                            "labelText",
                            "className",
                            "css",
                            "xpath"
                          ],
                          "type": "string"
                        },
                        "value": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 500
                        }
                      },
                      "required": [
                        "kind",
                        "value"
                      ],
                      "additionalProperties": false
                    },
                    "timeoutMs": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 60000,
                      "exclusiveMinimum": 0
                    }
                  },
                  "required": [
                    "action",
                    "hooks"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "action": {
                      "const": "handoff"
                    },
                    "hooks": {
                      "type": "array",
                      "minItems": 0,
                      "maxItems": 8,
                      "items": {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "enum": [
                              "automationId",
                              "name",
                              "dataTest",
                              "dataQa",
                              "dataUi",
                              "ariaLabel",
                              "labelText",
                              "className",
                              "css",
                              "xpath"
                            ],
                            "type": "string"
                          },
                          "value": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 500
                          }
                        },
                        "required": [
                          "kind",
                          "value"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "target": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120
                    },
                    "confirm": {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "enum": [
                            "automationId",
                            "name",
                            "dataTest",
                            "dataQa",
                            "dataUi",
                            "ariaLabel",
                            "labelText",
                            "className",
                            "css",
                            "xpath"
                          ],
                          "type": "string"
                        },
                        "value": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 500
                        }
                      },
                      "required": [
                        "kind",
                        "value"
                      ],
                      "additionalProperties": false
                    },
                    "timeoutMs": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 60000,
                      "exclusiveMinimum": 0
                    },
                    "reason": {
                      "enum": [
                        "real-input",
                        "self-id",
                        "captcha",
                        "email-code",
                        "credential",
                        "identity-provider"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "action",
                    "hooks",
                    "reason"
                  ],
                  "additionalProperties": false
                }
              ]
            }
          },
          "advance": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "action": {
                    "const": "advance"
                  },
                  "hooks": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 8,
                    "items": {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "enum": [
                            "automationId",
                            "name",
                            "dataTest",
                            "dataQa",
                            "dataUi",
                            "ariaLabel",
                            "labelText",
                            "className",
                            "css",
                            "xpath"
                          ],
                          "type": "string"
                        },
                        "value": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 500
                        }
                      },
                      "required": [
                        "kind",
                        "value"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "target": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120
                  },
                  "confirm": {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "enum": [
                          "automationId",
                          "name",
                          "dataTest",
                          "dataQa",
                          "dataUi",
                          "ariaLabel",
                          "labelText",
                          "className",
                          "css",
                          "xpath"
                        ],
                        "type": "string"
                      },
                      "value": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 500
                      }
                    },
                    "required": [
                      "kind",
                      "value"
                    ],
                    "additionalProperties": false
                  },
                  "timeoutMs": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 60000,
                    "exclusiveMinimum": 0
                  }
                },
                "required": [
                  "action",
                  "hooks"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "gates",
          "fields",
          "advance"
        ],
        "additionalProperties": false
      },
      "description": "The form's pages, in order."
    }
  },
  "required": [
    "runId",
    "pages"
  ]
}
```

## Responses

- `200`: Whether the report was taken: false when the run has reported already, or recipes are off.
