Skip to main content
POST
/
place_enrichment
/
enrich
Submit Enrichment
curl --request POST \
  --url https://api.repromptai.com/v1/{org}/place_enrichment/enrich \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "place_id": "place_nyc_123",
  "inputs": {
    "name": "Joes Pizza",
    "latitude": 40.7359,
    "longitude": -73.9911,
    "full_address": "7 Carmine St, New York, NY 10014"
  },
  "attribute_set": "core",
  "attributes": [
    "websites",
    "categories",
    "closed_permanently"
  ]
}'
{
  "place_id": "place_nyc_123",
  "status": "completed",
  "inputs": {
    "name": "Joes Pizza",
    "latitude": 40.7359,
    "longitude": -73.9911,
    "full_address": "7 Carmine St, New York, NY 10014"
  },
  "outputs": {
    "website": "https://www.joespizzanyc.com",
    "phone": "+12122555803",
    "social_profiles": {
      "instagram": "joespizzanyc",
      "facebook": "joespizzanyc"
    },
    "is_permanently_closed": false,
    "price_tier": "$$",
    "last_enriched": "2024-03-15T10:35:00Z"
  },
  "job_metadata": {
    "last_enriched": "2024-03-15T10:35:00Z",
    "attribute_status": {
      "website": "RUN",
      "phone": "RUN",
      "address": "RUN",
      "name": "RUN"
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

apiKey
string | null

Body

application/json
place_id
string
required

The customer-identifier for the place and retained as external_customer_id in the database. When not set, will automatically generate a UUID.

inputs
object
required
attributes
string[] | null

List of specific attributes to enrich using enum values (e.g., email_address, phone_number). If both attribute_set and attributes are provided, attributes takes precedence.

attribute_set
enum<string> | null

Specifies the set of attributes to enrich Defines the set of attributes to enrich for a place.

Available options:
open_closed,
core,
all
attributes_enrichments
Attributes Enrichments · object[] | null
refresh
boolean
default:false

If true, will force a refresh of the place even if it has already been enriched.

Response

Successfully enriched place data

place_id
string
required
status
string
required
job_metadata
object
required
inputs
object
required
outputs
object
required
reasoning
object
required
confidence_scores
object

Confidence scores for various attributes

I