Skip to main content
POST
/
api
/
openapi
/
v1
/
teams
Criar Equipe
curl --request POST \
  --url https://app.converza.io/api/openapi/v1/teams \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "user": {
    "name": "João Silva",
    "email": "[email protected]",
    "phone": "+5511999999999"
  },
  "team": {
    "name": "Corporação ACME",
    "plan_name": "Pro",
    "quotas": {
      "bots": 10,
      "accounts": 20,
      "characters": 1000000,
      "documents": 500,
      "members": 5,
      "credits": 1000
    }
  }
}
'
{
  "success": true,
  "data": {
    "team": {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "Corporação ACME",
      "plan_name": "Pro",
      "paying": true,
      "banned": false,
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z"
    },
    "user": {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "email": "[email protected]",
      "phone": "<string>",
      "created_at": "2023-11-07T05:31:56Z"
    }
  }
}

Authorizations

Authorization
string
header
required

Token JWT obtido do endpoint /api/openapi/auth/token

Body

application/json
user
object
required
team
object
required

Response

Equipe criada com sucesso

success
boolean
Example:

true

data
object