HydraCore
API by router

Worker bindings

List Bindings

GET
/internal/v1/instances/{instance_id}/worker-bindings

Path Parameters

instance_id*Instance Id
Formatuuid

Query Parameters

customer_id*Customer Id
Formatuuid

Response Body

Successful Response

response?unknownapplication/json
Example Request
curl -X GET 'https://example.com/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/worker-bindings?customer_id=497f6eca-6276-4993-bfeb-53cbbbba6f08'
Example Response
null

Create Binding

POST
/internal/v1/instances/{instance_id}/worker-bindings

Path Parameters

instance_id*Instance Id
Formatuuid

Request Body

application/json
  1. body
channel_address*Channel Address
Length1 <= length <= 255
channel_type*Channel Type

One of: ('whatsapp', 'sms', 'voice', 'telegram', 'email')

customer_id*Customer Id
Formatuuid
person_id*Person Id
Formatuuid

Response Body

Successful Response

response?unknownapplication/json
Example Request
curl -X POST 'https://example.com/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/worker-bindings' \  -H 'Content-Type: application/json' \  -d '{  "channel_address": "string",  "channel_type": "string",  "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",  "person_id": "087e858e-473c-4f50-b5b0-c1df6c021550"}'
Example Response
null

Rebind Channel

POST
/internal/v1/instances/{instance_id}/worker-bindings/{binding_id}/rebind

Path Parameters

instance_id*Instance Id
Formatuuid
binding_id*Binding Id
Formatuuid

Request Body

application/json
  1. body
new_address*New Address
Length1 <= length <= 255

Response Body

Successful Response

response?unknownapplication/json
Example Request
curl -X POST 'https://example.com/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/worker-bindings/497f6eca-6276-4993-bfeb-53cbbbba6f08/rebind' \  -H 'Content-Type: application/json' \  -d '{  "new_address": "string"}'
Example Response
null

Revoke Binding

POST
/internal/v1/instances/{instance_id}/worker-bindings/{binding_id}/revoke

Path Parameters

instance_id*Instance Id
Formatuuid
binding_id*Binding Id
Formatuuid

Response Body

Successful Response

response?unknownapplication/json
Example Request
curl -X POST 'https://example.com/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/worker-bindings/497f6eca-6276-4993-bfeb-53cbbbba6f08/revoke'
Example Response
null

Tenant List Bindings

GET
/v1/customers/{customer_id}/worker-bindings

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Path Parameters

customer_id*Customer Id
Formatuuid

Header Parameters

X-Api-Key?string|null

Response Body

Successful Response

response?unknownapplication/json
Example Request
curl -X GET 'https://example.com/v1/customers/497f6eca-6276-4993-bfeb-53cbbbba6f08/worker-bindings'
Example Response
null

Tenant Create Binding

POST
/v1/customers/{customer_id}/worker-bindings

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Path Parameters

customer_id*Customer Id
Formatuuid

Header Parameters

X-Api-Key?string|null

Request Body

application/json
  1. body
channel_address*Channel Address
Length1 <= length <= 255
channel_type*Channel Type

One of: ('whatsapp', 'sms', 'voice', 'telegram', 'email')

customer_id*Customer Id
Formatuuid
person_id*Person Id
Formatuuid

Response Body

Successful Response

response?unknownapplication/json
Example Request
curl -X POST 'https://example.com/v1/customers/497f6eca-6276-4993-bfeb-53cbbbba6f08/worker-bindings' \  -H 'Content-Type: application/json' \  -d '{  "channel_address": "string",  "channel_type": "string",  "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",  "person_id": "087e858e-473c-4f50-b5b0-c1df6c021550"}'
Example Response
null

Tenant Rebind

POST
/v1/customers/{customer_id}/worker-bindings/{binding_id}/rebind

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Path Parameters

customer_id*Customer Id
Formatuuid
binding_id*Binding Id
Formatuuid

Header Parameters

X-Api-Key?string|null

Request Body

application/json
  1. body
new_address*New Address
Length1 <= length <= 255

Response Body

Successful Response

response?unknownapplication/json
Example Request
curl -X POST 'https://example.com/v1/customers/497f6eca-6276-4993-bfeb-53cbbbba6f08/worker-bindings/497f6eca-6276-4993-bfeb-53cbbbba6f08/rebind' \  -H 'Content-Type: application/json' \  -d '{  "new_address": "string"}'
Example Response
null

Tenant Revoke Binding

POST
/v1/customers/{customer_id}/worker-bindings/{binding_id}/revoke

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Path Parameters

customer_id*Customer Id
Formatuuid
binding_id*Binding Id
Formatuuid

Header Parameters

X-Api-Key?string|null

Response Body

Successful Response

response?unknownapplication/json
Example Request
curl -X POST 'https://example.com/v1/customers/497f6eca-6276-4993-bfeb-53cbbbba6f08/worker-bindings/497f6eca-6276-4993-bfeb-53cbbbba6f08/revoke'
Example Response
null