RepromptDocs

Enrich a single place synchronously

POST
/place_enrichment/enrich

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Header Parameters

apiKey?string|null

Request Body

application/json
  1. body
place_id*Place Id

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

inputs*

The place to enrich

attributes?array<string>|

List of attribute keys to enrich. See GET /{org_slug}/place_enrichment/attributes_internal for available keys and their required inputs. If both attribute_set and attributes are provided, both are merged (explicit attributes are added to the set from attribute_set).

attribute_set?|

Deprecated preset for common enrichment requests. Prefer an explicit attributes list. open_closed checks whether a place is open or permanently closed, while core and all both request closed_permanently, websites, phoneNumbers, openingHours, names, address, and categories.

attributes_enrichments?array<>|null
refresh?Refresh

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

Defaultfalse

Response Body

Successfully enriched place data

application/json
  1. response
place_id*Place Id
status*Status
job_metadata*
inputs*
outputs*
reasoning*
confidence_scores?

Confidence scores for various attributes

Example Request
curl -X POST 'https://api.repromptai.com/v1/reprompt/place_enrichment/enrich' \  -H 'Content-Type: application/json' \  -d '{  "place_id": "string",  "inputs": {    "name": "string",    "full_address": "string",    "country_code": "string",    "latitude": 0,    "longitude": 0  }}'
Example Response
{  "place_id": "place_nyc_123",  "status": "completed",  "inputs": {    "name": "Joe's 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"    },    "open_closed_status": "Open",    "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"    }  }}