Skip to content
Open
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
7782fcd
Fix reference to response of GET https://api.cmd.tyntec.com/v3/compan…
radekholy24 Dec 1, 2021
6c32315
Add version to https://api.cmd.tyntec.com/v3
radekholy24 Nov 29, 2021
b047869
Fix the items of events in webhookResponse
radekholy24 Dec 7, 2021
aec6545
Fix the descriptions in the body of PATCH https://api.cmd.tyntec.com/…
radekholy24 Dec 2, 2021
4b2f1b0
Fix the type of jids in quickReply
radekholy24 Dec 6, 2021
af8b00e
Fix the reference to labels items in conversationResponse
radekholy24 Dec 7, 2021
c0dd61f
Fix the description of GET https://api.cmd.tyntec.com/v3/keys/current
radekholy24 Nov 29, 2021
b37c70f
Fix references to schemas in Support Inbox API
radekholy24 Nov 29, 2021
87c0d7a
Fix the path of GET https://api.cmd.tyntec.com/v3/keys/current
radekholy24 Nov 29, 2021
d429c59
Fix the items of objects in apiKeyResponse
radekholy24 Dec 7, 2021
fb4f1a7
Fix link to Webhook Configuration in POST https://api.cmd.tyntec.com/…
radekholy24 Dec 7, 2021
782dd7c
Fix the description of the location message in the Support Inbox API
radekholy24 Dec 7, 2021
b1f5de6
Fix reference to response items of GET https://api.cmd.tyntec.com/v3/…
radekholy24 Dec 7, 2021
0c067fe
Fix the example of headers in webhookResponse
radekholy24 Dec 7, 2021
a42accc
Fix reference to response items of GET https://api.cmd.tyntec.com/v3/…
radekholy24 Dec 6, 2021
2b442a5
Fix the description of dataRetentionInDays in channelResponse
radekholy24 Dec 6, 2021
b72fa31
Document items of names in contactResponse
radekholy24 Dec 6, 2021
e0a27bf
Fix reference to response of GET https://api.cmd.tyntec.com/v3/channe…
radekholy24 Dec 6, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
94 changes: 55 additions & 39 deletions third-party/eazy/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ info:
x-repository: https://github.com/tyntec/api-collection/blob/master/third-party/eazy
x-major-version: v1
servers:
- url: https://api.cmd.tyntec.com/
- url: https://api.cmd.tyntec.com/v3
security:
- bearerAuth: []
tags:
Expand Down Expand Up @@ -323,21 +323,21 @@ paths:
schema:
type: array
items:
$ref: '#/components/schema/apiKeyResponse'
/keys/currrent:
$ref: '#/components/schemas/apiKeyResponse'
/keys/current:
get:
summary: Current API key
tags:
- 'API Keys'
operationId: currentApiKey
description: A specific agent can be requested
description: The current key can be retrieved using the GET method.
responses:
200:
description: OK
content:
application/json:
schema:
$ref: '#/components/schema/apiKeyResponse'
$ref: '#/components/schemas/apiKeyResponse'
/companies:
get:
summary: List all companies
Expand Down Expand Up @@ -443,7 +443,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/responses/agentsResponse'
$ref: '#/components/schemas/agentResponse'
/companies/{companyId}/teams:
post:
summary: Create a team
Expand Down Expand Up @@ -479,7 +479,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/responses/teamResponse'
$ref: '#/components/schemas/teamResponse'
get:
summary: List all teams
tags:
Expand Down Expand Up @@ -527,15 +527,15 @@ paths:
format: email
example: '[email protected]'
requestBody:
description: The team you would like to create
description: The team you would like to update
required: true
content:
application/json:
schema:
type: object
properties:
name:
description: Name of the team to be created
description: The name of the team to be updated
type: string
example: Support
color:
Expand Down Expand Up @@ -656,7 +656,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/responses/assistantResponse'
$ref: '#/components/schemas/assistantResponse'
/companies/{companyId}/labels:
post:
summary: Create a label
Expand Down Expand Up @@ -694,7 +694,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/responses/labelResponse'
$ref: '#/components/schemas/labelResponse'
get:
summary: List all labels
tags:
Expand All @@ -717,7 +717,7 @@ paths:
schema:
type: array
items:
$ref: '#/components/responses/labelResponse'
$ref: '#/components/schemas/labelResponse'
/companies/{companyId}/labels/{jid}:
patch:
summary: Update a label
Expand Down Expand Up @@ -766,7 +766,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/responses/labelResponse'
$ref: '#/components/schemas/labelResponse'
delete:
summary: Delete a label
tags:
Expand Down Expand Up @@ -964,7 +964,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/responses/autoMessageResponse'
$ref: '#/components/schemas/autoMessageResponse'
/channels/{channelJid}/contacts:
post:
summary: Create a contact
Expand Down Expand Up @@ -1213,7 +1213,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/responses/commentResponse'
$ref: '#/components/schemas/commentResponse'
/channels/{channelJid}/conversations/{contactJid}:
get:
summary: Read a conversation
Expand Down Expand Up @@ -1326,7 +1326,7 @@ paths:
schema:
type: array
items:
$ref: '#/components/responses/listResponse'
$ref: '#/components/schemas/listResponse'
/channels/{channelJid}/lists/{listJid}/{contactJid}:
post:
summary: Add a contact to a list
Expand Down Expand Up @@ -1450,8 +1450,8 @@ paths:

| **Element** | **Value** | **Mandatory** | **Description** |
| --- | --- | --- | --- |
| latitude | float Y | Latitude | coordinate |
| longitude | float Y | Longitude | coordinate |
| latitude | float | Y | Latitude coordinate |
| longitude | float | Y | Longitude coordinate |
| name | string | N | Name of the location |
| type | "location" | Y | Message type |
| url | string | N | Website URL |
Expand Down Expand Up @@ -1541,7 +1541,7 @@ paths:
- 'Messaging'
description: |
To receive messages, create an endpoint on your webserver that will be able to process POST requests
and subscribe its URL via [Webhook Configuration](#webhook-configuration) to the "message" events.
and subscribe its URL via [Webhook Configuration](#support-inbox-api-webhook-configuration) to the "message" events.

**Note:** The path above is only an example, you may choose your URL freely.
/channels/{channelJid}/contacts/{contactJid}/notes:
Expand Down Expand Up @@ -1868,7 +1868,7 @@ paths:
schema:
type: array
items:
$ref: '#/components/schemas/qrCodesResponse'
$ref: '#/components/schemas/qrCodeResponse'
post:
summary: Create a QR code
tags:
Expand Down Expand Up @@ -2087,7 +2087,7 @@ paths:
schema:
type: array
items:
$ref: '#/components/schemas/webhooksResponse'
$ref: '#/components/schemas/webhookResponse'
post:
summary: Create a webhook
tags:
Expand Down Expand Up @@ -2319,12 +2319,10 @@ components:
description: Array of objects. Check example on the right
type: array
items:
type: array
items:
type: string
type: object
example:
- "'jid': '[email protected]'"
- "'type': 'CHANNEL'"
jid: '[email protected]'
type: 'CHANNEL'
scope:
description: The scope of this key
type: string
Expand Down Expand Up @@ -2392,7 +2390,7 @@ components:
type: object
properties:
dataRetentionInDays:
description: Body/text of the message
description: Data retention time in days
type: integer
example: 90
jid:
Expand Down Expand Up @@ -2458,6 +2456,22 @@ components:
description: Type of the contact
type: string
example: 'INDIVIDUAL'
name:
description: "The contact's name"
type: object
properties:
firstName:
description: "The contact's first name"
type: string
example: 'John'
fullName:
description: "The contact's full name"
type: string
example: 'John Doe'
lastName:
description: "The contact's last name"
type: string
example: 'Doe'
conversationResponse:
description: Conversation response
type: object
Expand Down Expand Up @@ -2485,7 +2499,7 @@ components:
description: Labels of the conversation
type: array
items:
$ref: '#/components/schemas/allLabelsResponse'
$ref: '#/components/schemas/labelResponse'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could not test it. Is this correct? Maybe it should be just an array of strings?

lastMessageReceivedAt:
description: Date and time the last message is received
type: string
Expand All @@ -2512,12 +2526,10 @@ components:
description: Number of unread messages
type: integer
example: 5
emailsResponse:
description: List all email addresses
type: array
items:
$ref: '#/components/schemas/email'
example: [[email protected], [email protected], [email protected]]
email:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ridlees suggests renaming this to jid. What do you think?

description: An email address
type: string
example: [email protected]
labelResponse:
description: Single Label Response
type: object
Expand Down Expand Up @@ -2697,12 +2709,12 @@ components:
description: Array of event on the webhooks
type: array
items:
$ref: '#/components/schemas/events'
$ref: '#/components/schemas/event'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this correct?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just see that this is major mistake

it's a list of strings

custom Custom event for specific customer purposes
echo Outgoing messages sent by agents or assistants
handover Handover event whenever a conversation is transferred to an assistant or agent
label Label event whenever a conversation is labelled or unlabelled
message Incoming messages from customers
note Note creation or deletion event
postback Postback event for WhatsApp button templates, Apple list pickers etc
receipt Message receipt event
template_pack Template updates whenever templates are approved, rejected etc.
typing Typing indications when customers are typing a message

headers:
description: Header parameters
type: object
items:
example: "'Authorization': 'Bearer SomeApiKey'"
example:
Authorization: 'Bearer SomeApiKey'
id:
description: ID of the event
type: string
Expand All @@ -2716,6 +2728,10 @@ components:
description: URL of the webhook
type: string
example: "https://your.company.com/webhook"
event:
description: An event
type: string
example: "message"
businessProfile:
description: WhatsApp for Business profile response
type: object
Expand Down Expand Up @@ -2774,8 +2790,8 @@ components:
type: array
description: List of channels the quick reply is assigned to
items:
- type: string
example: [email protected]
type: string
example: [email protected]
message:
type: string
description: Message of the quick reply
Expand Down