Skip to main content
POST
/
enrich
Enrich
curl --request POST \
  --url https://reprompt-mikhail--reprompt-fastapi-fastapi-app-dev.modal.run/v2/enrich \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data @- <<EOF
{
  "inputs": {
    "name": "Joe's Pizza",
    "latitude": 40.7359,
    "longitude": -73.9911,
    "full_address": "7 Carmine St, New York, NY 10014"
  },
  "attribute_key": "closed_permanently",
  "version": 123
}
EOF
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer token in the format: Bearer YOUR_API_KEY

Headers

apiKey
string | null

Query Parameters

org_slug
string | null

Body

application/json

Main enrichment request

inputs
EnrichInputObject · object

Input data for the enrichment (keys depend on attribute_key).

attribute_key
string
default:closed_permanently

Key identifying the enrichment to run. See GET /v2/attributes for the full list of available keys and their required inputs.

version
integer | null

Optional saved agent version to run. Defaults to the active version when omitted.

Response

Successful Response