echowin

App · 19 actions

Read echowin agents, contacts, conversations, and team records.

Actions

ActionWhat it does
Get a contactGet a contact.
Get a conversationGet a conversation.
Get a team memberGet a team member.
Get agent instructionsGet agent instructions.
Get an agentGet an agent.
Get connection detailsGet connection details.
List agent instruction versionsList agent instruction versions.
List agentsList agents.
List campaignsList campaigns.
List contact notesList contact notes.
List contact timeline entriesList contact timeline entries.
List contactsList contacts.
List conversation messagesList conversation messages.
List conversation notesList conversation notes.
List conversation tagsList conversation tags.
List conversationsList conversations.
List knowledge basesList knowledge bases.
List phone numbersList phone numbers.
List team membersList team members.

Get a contact

Get a contact.

Inputs

Contact IDcontact_idtextRequired
contactId to use.

Outputs

dataobject
Response.
Example output
{
  "data": {
    "activity": {
      "conversations": 1,
      "lastChannel": "example",
      "lastConversationAt": "example"
    },
    "address": {},
    "assignments": [],
    "autoPopulated": false,
    "company": "example",
    "createdAt": "example",
    "customFields": {},
    "doNotCall": false,
    "e164": "example",
    "email": "example",
    "favorite": false,
    "firstName": "example",
    "id": "example",
    "lastName": "example",
    "listIds": [],
    "memory": "example",
    "notes": [],
    "ownerUserId": "example",
    "source": "example",
    "tags": [],
    "tenantId": "example",
    "updatedAt": "example"
  }
}

Get a conversation

Get a conversation.

Inputs

Conversation IDconversation_idtextRequired
conversationId to use.

Outputs

dataobject
Response.
Example output
{
  "data": {
    "agent": {},
    "agentId": "example",
    "answeredAt": "example",
    "archived": false,
    "billedSeconds": 1.0,
    "callDetails": {},
    "campaignContactId": "example",
    "campaignId": "example",
    "channel": "phone",
    "contact": {},
    "contactId": "example",
    "contentDeleted": false,
    "createdAt": "example",
    "direction": "inbound",
    "durationMs": 1.0,
    "endedAt": "example",
    "favorite": false,
    "feedback": {
      "own": {
        "authorName": "example",
        "comment": "example",
        "createdAt": "example",
        "id": "example",
        "mine": false,
        "rating": "like"
      },
      "reports": []
    },
    "flagged": false,
    "fromAddress": "example",
    "id": "example",
    "isTest": false,
    "masked": false,
    "memory": "example",
    "messages": [],
    "metadata": {},
    "scheduledCallId": "example",
    "score": 1.0,
    "spam": false,
    "startedAt": "example",
    "status": "queued",
    "summary": "example",
    "tenantId": "example",
    "title": "example",
    "toAddress": "example",
    "updatedAt": "example",
    "widgetId": "example"
  }
}

Get a team member

Get a team member.

Inputs

Member IDmember_idtextRequired
memberId to use.

Outputs

dataobject
Response.
Example output
{
  "data": {
    "clientTenantIds": [],
    "createdAt": "example",
    "emailNotifications": false,
    "id": "example",
    "lastActiveAt": "example",
    "restrictedToAssignedClients": false,
    "role": "owner",
    "tenantId": "example",
    "user": {
      "email": "example",
      "image": "example",
      "name": "example"
    },
    "userId": "example"
  }
}

Get agent instructions

Get agent instructions.

Inputs

Agent IDagent_idtextRequired
agentId to use.

Outputs

dataobject
Response.
Example output
{
  "data": {
    "agentId": "example",
    "instructions": "example",
    "source": "example",
    "updatedAt": "example",
    "versionId": "example"
  }
}

Get an agent

Get an agent.

Inputs

Agent IDagent_idtextRequired
agentId to use.

Outputs

dataobject
Response.
Example output
{
  "data": {
    "autoDeleteTranscripts": false,
    "callTimeoutSeconds": 1,
    "config": {},
    "createdAt": "example",
    "description": "example",
    "id": "example",
    "initialMessage": "example",
    "instructions": "example",
    "keyPhrases": [],
    "knowledgeBaseIds": [],
    "language": "example",
    "modelTier": "speedy",
    "name": "example",
    "omegaThinkingLevel": "example",
    "phoneNumberIds": [],
    "setup": {
      "error": "example",
      "status": "example",
      "step": "example"
    },
    "skipRecordingNotice": false,
    "speechEngine": "omega",
    "status": "live",
    "templateId": "example",
    "tenantId": "example",
    "testPhoneNumber": "example",
    "timezone": "example",
    "updatedAt": "example",
    "voiceConfig": {},
    "voiceId": "example",
    "widgetIds": []
  }
}

Get connection details

Get connection details.

Inputs

None.

Outputs

dataobject
Response.
Example output
{
  "data": {
    "activeTenantId": "example",
    "apiKey": {
      "id": "example",
      "scopes": [],
      "tenantId": "example"
    },
    "impersonation": {
      "actorEmail": "example",
      "actorId": "example",
      "actorName": "example",
      "expiresAt": "example"
    },
    "memberships": [],
    "type": "user",
    "user": {
      "email": "example",
      "emailVerified": false,
      "id": "example",
      "image": "example",
      "name": "example",
      "twoFactorEnabled": false
    }
  }
}

List agent instruction versions

List agent instruction versions.

Inputs

Agent IDagent_idtextRequired
agentId to use.
Limitlimitnumber
limit to use.From 1 to 100.
Cursorcursortext
`nextCursor` from the previous page

Outputs

dataobject
Response.
Example output
{
  "data": {
    "data": [],
    "nextCursor": "example"
  }
}

List agents

List agents.

Inputs

Limitlimitnumber
limit to use.From 1 to 100.
Cursorcursortext
`nextCursor` from the previous page
Qqtext
Name contains
Statusstatustext
Derived; see agentStatus in apps/api/src/lib/agents.tsOne of: live, not_connected (Not connected), building, needs_attention (Needs attention).
Sortsorttext
`-lastConversationAt` puts agents without real conversations lastOne of: -createdAt, name, -lastConversationAt.

Outputs

dataobject
Response.
Example output
{
  "data": {
    "counts": {
      "all": 1,
      "building": 1,
      "live": 1,
      "needs_attention": 1,
      "not_connected": 1
    },
    "data": [],
    "nextCursor": "example"
  }
}

List campaigns

List campaigns.

Inputs

Limitlimitnumber
limit to use.From 1 to 100.
Cursorcursortext
`nextCursor` from the previous page
Statusstatustext
status to use.

Outputs

dataobject
Response.
Example output
{
  "data": {
    "data": [],
    "nextCursor": "example"
  }
}

List contact notes

List contact notes.

Inputs

Contact IDcontact_idtextRequired
contactId to use.
Limitlimitnumber
limit to use.From 1 to 100.
Cursorcursortext
`nextCursor` from the previous page

Outputs

dataobject
Response.
Example output
{
  "data": {
    "data": [],
    "nextCursor": "example"
  }
}

List contact timeline entries

List contact timeline entries.

Inputs

Contact IDcontact_idtextRequired
contactId to use.
Limitlimitnumber
limit to use.From 1 to 100.
Cursorcursortext
`nextCursor` from the previous page

Outputs

dataobject
Response.
Example output
{
  "data": {
    "data": [],
    "nextCursor": "example"
  }
}

List contacts

List contacts.

Inputs

Limitlimitnumber
limit to use.From 1 to 100.
Cursorcursortext
`nextCursor` from the previous page
Qqtext
q to use.
Do not calldo_not_calltext
doNotCall to use.One of: true, false.
Favoritefavoritetext
favorite to use.One of: true, false.
Created aftercreated_afterdate and time
createdAfter to use.
Created beforecreated_beforedate and time
createdBefore to use.

Outputs

dataobject
Response.
Example output
{
  "data": {
    "data": [],
    "nextCursor": "example"
  }
}

List conversation messages

List conversation messages.

Inputs

Conversation IDconversation_idtextRequired
conversationId to use.
Limitlimitnumber
limit to use.From 1 to 500.
Cursorcursortext
cursor to use.

Outputs

dataobject
Response.
Example output
{
  "data": {
    "data": [],
    "nextCursor": "example"
  }
}

List conversation notes

List conversation notes.

Inputs

Conversation IDconversation_idtextRequired
conversationId to use.
Limitlimitnumber
limit to use.From 1 to 100.
Cursorcursortext
`nextCursor` from the previous page

Outputs

dataobject
Response.
Example output
{
  "data": {
    "data": [],
    "nextCursor": "example"
  }
}

List conversation tags

List conversation tags.

Inputs

Conversation IDconversation_idtextRequired
conversationId to use.

Outputs

dataobject
Response.
Example output
{
  "data": {
    "data": [],
    "nextCursor": "example"
  }
}

List conversations

List conversations.

Inputs

Limitlimitnumber
limit to use.From 1 to 100.
Cursorcursortext
`nextCursor` from the previous page
Channelchanneltext
channel to use.
Directiondirectiontext
direction to use.One of: inbound, outbound.
Statusstatustext
status to use.One of: queued, ringing, active, ended, failed, no_answer (No answer), busy, canceled.
Livelivetext
live to use.One of: true.
Agent IDagent_idtext
agentId to use.
Flaggedflaggedtext
flagged to use.One of: true, false.
Favoritefavoritetext
favorite to use.One of: true, false.
Started afterstarted_afterdate and time
startedAfter to use.
Started beforestarted_beforedate and time
startedBefore to use.

Outputs

dataobject
Response.
Example output
{
  "data": {
    "data": [],
    "nextCursor": "example"
  }
}

List knowledge bases

List knowledge bases.

Inputs

Limitlimitnumber
limit to use.From 1 to 100.
Cursorcursortext
`nextCursor` from the previous page
Qqtext
q to use.

Outputs

dataobject
Response.
Example output
{
  "data": {
    "data": [],
    "nextCursor": "example"
  }
}

List phone numbers

List phone numbers.

Inputs

Limitlimitnumber
limit to use.From 1 to 100.
Cursorcursortext
`nextCursor` from the previous page

Outputs

dataobject
Response.
Example output
{
  "data": {
    "data": [],
    "nextCursor": "example"
  }
}

List team members

List team members.

Inputs

Limitlimitnumber
limit to use.From 1 to 100.
Cursorcursortext
`nextCursor` from the previous page
Roleroletext
role to use.One of: owner, admin, member, viewer, staff_admin (Staff admin), staff_support (Staff support).
Qqtext
Name or email contains

Outputs

dataobject
Response.
Example output
{
  "data": {
    "data": [],
    "nextCursor": "example"
  }
}

On this page