Recover a Business.
GET/api/v2/business/:businessId
Bring the information of a business with its respective instances and connected numbers.
Request
Path Parameters
businessId stringrequired
Business ID.
Responses
- 200
- 400
- 401
- 500
BusinessFindResponse
- application/json
- Schema
- Example (from schema)
Schema
businessId stringrequired
name stringrequired
businessToken stringrequired
attributes objectrequired
createdAt date-timerequired
updatedAt date-timerequired
deletedAt date-timerequired
BusinessWebhook object
webhookId stringrequired
url stringrequired
enabled booleanrequired
createdAt date-timerequired
updatedAt date-timerequired
{
"businessId": "string",
"name": "string",
"businessToken": "string",
"attributes": {},
"createdAt": "2024-04-14T14:11:05.599Z",
"updatedAt": "2024-04-14T14:11:05.599Z",
"deletedAt": "2024-04-14T14:11:05.599Z",
"BusinessWebhook": {
"webhookId": "string",
"url": "string",
"enabled": true,
"createdAt": "2024-04-14T14:11:05.600Z",
"updatedAt": "2024-04-14T14:11:05.600Z"
}
}
BadRequestException
- application/json
- Schema
- Example (from schema)
Schema
message string[]required
Default value: string,[object Object]
error stringrequired
statusCode numberrequired
{
"message": [
"string"
],
"error": "string",
"statusCode": 0
}
UnauthorizedException
- application/json
- Schema
- Example (from schema)
Schema
message string[]required
Default value: string,[object Object]
error stringrequired
statusCode numberrequired
{
"message": [
"string"
],
"error": "string",
"statusCode": 0
}
InternalServerErrorException
- application/json
- Schema
- Example (from schema)
Schema
message string[]required
Default value: string,[object Object]
error stringrequired
statusCode numberrequired
{
"message": [
"string"
],
"error": "string",
"statusCode": 0
}
Loading...