DevConnectAi icon

DevConnectAi

IntegraΓ§Γ£o completa com API DevConnectAi - Envie mensagens, gerencie contatos, tickets e muito mais

πŸ‘οΈ Mostrar Empresa

AI-generated

Summary

Retrieve company details by ID

Inputs

  • tokenType β€” Selects the authentication token to use: 'connection' (WhatsApp connection token), 'company' (company token), or 'admin' (admin token).
  • companyId (required) β€” The unique identifier of the company to retrieve.

Output shape

a single company object

The response contains the company record (e.g., id, name, CNPJ, status) or an error if the ID is invalid.

Examples

Example 1: Retrieve details of a specific company

Set tokenType to 'company' (or 'admin') and provide the companyId; the operation returns the company data.

Example 2: Show company info using the default token

Leave tokenType as default 'connection' (will fallback to connection token) and specify the companyId; success depends on token permissions.

Example 3: Handle invalid companyId

Provide an invalid companyId; the operation returns an error message.

Discussion