Create an entity through its provisioning path

POST /Platform/entities/{entity_type}/allocate

Create an entity through its provisioning path. Covers any required external allocation, purchase, registration, validation, or configuration; use this route instead of generic entity creation for such types.

Single round-trip: allocation IS creation for these entity types. Call describe for the entity type (or allocate-schema) first: its allocation block lists the accepted parameters with their JSON schemas, and any purchase, recurring-cost, confirmation or irreversibility warning. For TelnyxPhoneNumber this operation buys a real number; editing an already-provisioned number's routing does not allocate or release one.

The whole of params is checked against the type's contract before anything is bought or written, so a refusal for a missing, unknown or malformed parameter never follows a side effect. A type that buys something lands on the branch its contract declares (lands_on, main for phone numbers) whatever branch you pass; the response's branch says where it landed.

Path parameters

Body parameters

Returns

AllocateEntityResponse

Example request

curl -X POST "https://api.hilus.ai/Platform/entities/{entity_type}/allocate" \
  -H "Authorization: Bearer $HILUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'