Download OpenAPI specification:Download
Operations exposed by the amiko Dialogue Engine for the Issuer Bank to integrate with. This API is to be used by your application frontend (portal or app), however for security reasons it is to be integrated with your application backend. This means your application backend acts as a (reverse)proxy between your frontend and the amiko Edge Connector.
The language is controlled via the language query parameter. If the language parameter is not provided, the engine will default to EN (english). Important: The cardId or cardholderId is NOT to be provided by the frontend (portal or app) but to be injected by the application backend as a request parameter. Your backend or integration layer (e.g. API Gateway) is to extract this information from an authenticated session. At least one of the two parameters needs to be present and only one should be present. If both are provided then the cardholderId will be used.
| conversationId required | string |
| language | string Available values : EN, DE, FR, IT |
| cardId | string |
| cardholderId | string |
| formatting | boolean |
| salutation | boolean |
| tracing-id | string |
{- "conversationId": "string",
- "cardholderId": "2bd52a45-129d-4723-9143-e1c5b5ed34e7",
- "cardId": "b8ba25f3-c945-4ed0-9d4d-e3153a0dd048",
- "caseId": "1234",
- "caseType": "fraud",
- "conversationStatus": "additional_response_required",
- "hasUnreadMessages": true,
- "associatedARNs": [
- "22223600332062290049858"
], - "firstUnreadMessageId": "30747951-2043-40dc-ac70-4613541f7d9d",
- "dialogueCount": 0,
- "dialogues": [
- {
- "dialogueId": "f476f73c-493c-4878-a863-be5b1434ff93",
- "cancelled": true,
- "createdAt": 1670935380000,
- "dialogueType": "collect_affidavit",
- "messages": [
- {
- "type": "text",
- "messageId": "30747951-2043-40dc-ac70-4613541f7d9d",
- "sequenceNr": 0,
- "createdAt": 1670935380000,
- "isRead": true,
- "text": "string",
- "isQuestion": false
}
], - "canUndoLastAnswer": true
}
], - "lastUpdated": 1670935380000,
- "initiatedBy": "agent",
- "initiatedByDialogueType": "collect_affidavit",
- "availableLanguages": [
- "de"
], - "availableFollowupDialogues": [
- "collect_affidavit"
], - "cardholderClaimOutcome": "cardholder_recognized_resolved",
- "issuerId": "123456789"
}If the last message in a dialogue (meaning the messages with highest sequenceNr) is of a type that can be answered this endpoint is used to post the response. If the last message in a dialogue is of a different type, then there the dialogue is finished and no cardholder response is required/possible. The parameters on this endpoint are used to point to the conversation and the dialogue. The messageId for the message that is being answered is to be provided on the body.
| conversationId required | string |
| dialogueId required | string |
| language | string Available values : EN, DE, FR, IT |
| cardId | string |
| cardholderId | string |
| formatting | boolean |
| salutation | boolean |
| tracing-id | string |
| type required | string Default: "free_text_answer" |
| messageId required | string Unique identifier for a message |
| answer required | string |
{- "type": "free_text_answer",
- "messageId": "30747951-2043-40dc-ac70-4613541f7d9d",
- "answer": "string"
}{- "conversationId": "string",
- "cardholderId": "2bd52a45-129d-4723-9143-e1c5b5ed34e7",
- "cardId": "b8ba25f3-c945-4ed0-9d4d-e3153a0dd048",
- "caseId": "1234",
- "caseType": "fraud",
- "conversationStatus": "additional_response_required",
- "hasUnreadMessages": true,
- "associatedARNs": [
- "22223600332062290049858"
], - "firstUnreadMessageId": "30747951-2043-40dc-ac70-4613541f7d9d",
- "dialogueCount": 0,
- "dialogues": [
- {
- "dialogueId": "f476f73c-493c-4878-a863-be5b1434ff93",
- "cancelled": true,
- "createdAt": 1670935380000,
- "dialogueType": "collect_affidavit",
- "messages": [
- {
- "type": "text",
- "messageId": "30747951-2043-40dc-ac70-4613541f7d9d",
- "sequenceNr": 0,
- "createdAt": 1670935380000,
- "isRead": true,
- "text": "string",
- "isQuestion": false
}
], - "canUndoLastAnswer": true
}
], - "lastUpdated": 1670935380000,
- "initiatedBy": "agent",
- "initiatedByDialogueType": "collect_affidavit",
- "availableLanguages": [
- "de"
], - "availableFollowupDialogues": [
- "collect_affidavit"
], - "cardholderClaimOutcome": "cardholder_recognized_resolved",
- "issuerId": "123456789"
}This endpoint can be used to undo last answer in a dialogue when it's possible. The parameters on this endpoint are used to point to the conversation and the dialogue. The messageId for the message that is being answered is to be provided on the body.
| conversationId required | string |
| dialogueId required | string |
| language | string Available values : EN, DE, FR, IT |
| cardId | string |
| cardholderId | string |
| formatting | boolean |
| salutation | boolean |
| tracing-id | string |
{- "conversationId": "string",
- "cardholderId": "2bd52a45-129d-4723-9143-e1c5b5ed34e7",
- "cardId": "b8ba25f3-c945-4ed0-9d4d-e3153a0dd048",
- "caseId": "1234",
- "caseType": "fraud",
- "conversationStatus": "additional_response_required",
- "hasUnreadMessages": true,
- "associatedARNs": [
- "22223600332062290049858"
], - "firstUnreadMessageId": "30747951-2043-40dc-ac70-4613541f7d9d",
- "dialogueCount": 0,
- "dialogues": [
- {
- "dialogueId": "f476f73c-493c-4878-a863-be5b1434ff93",
- "cancelled": true,
- "createdAt": 1670935380000,
- "dialogueType": "collect_affidavit",
- "messages": [
- {
- "type": "text",
- "messageId": "30747951-2043-40dc-ac70-4613541f7d9d",
- "sequenceNr": 0,
- "createdAt": 1670935380000,
- "isRead": true,
- "text": "string",
- "isQuestion": false
}
], - "canUndoLastAnswer": true
}
], - "lastUpdated": 1670935380000,
- "initiatedBy": "agent",
- "initiatedByDialogueType": "collect_affidavit",
- "availableLanguages": [
- "de"
], - "availableFollowupDialogues": [
- "collect_affidavit"
], - "cardholderClaimOutcome": "cardholder_recognized_resolved",
- "issuerId": "123456789"
}Marks the specified message and all messages with a lower sequenceNr as read.
| conversationId required | string |
| dialogueId required | string |
| messageId required | string |
| cardId | string |
| cardholderId | string |
| tracing-id | string |
{- "tracingId": "5f27b818-027a-4008-b410-de01e1dd3a93",
- "error": {
- "message": "string",
- "description": "string",
- "code": "string"
}
}Important: The cardId or cardholderId is NOT to be provided by the frontend (portal or app) but to be injected by the application backend as a request parameter. Your backend or integration layer (e.g. API Gateway) is to extract this information from an authenticated session. At least one of the two parameters needs to be present and only one should be present. If both are provided then the cardholderId will be used.
| cardId | string |
| cardholderId | string |
| tracing-id | string |
{- "cardholderId": "2bd52a45-129d-4723-9143-e1c5b5ed34e7",
- "conversations": [
- {
- "conversationId": "string",
- "cardId": "b8ba25f3-c945-4ed0-9d4d-e3153a0dd048",
- "caseId": "1234",
- "caseType": "fraud",
- "createdAt": 1670935380000,
- "conversationStatus": "additional_response_required",
- "hasUnreadMessages": true,
- "associatedARNs": [
- "22223600332062290049858"
], - "lastUpdated": 1670935380000,
- "initiatedBy": "agent",
- "initiatedByDialogueType": "collect_affidavit",
- "availableLanguages": [
- "de"
], - "cardholderClaimOutcome": "cardholder_recognized_resolved"
}
]
}Used to download a document using a documentId
| conversationId required | string |
| dialogueId required | string |
| documentId required | string |
| cardId | string |
| cardholderId | string |
| tracing-id | string |
{- "tracingId": "5f27b818-027a-4008-b410-de01e1dd3a93",
- "error": {
- "message": "string",
- "description": "string",
- "code": "string"
}
}Used to upload a document in order to receive a documentId that can be used to answer a message of type upload_document. Only documents with certain mimeTypes are supported.
| conversationId required | string |
| dialogueId required | string |
| cardId | string |
| cardholderId | string |
| tracing-id | string |
| mimeType required | string |
| document required | string <binary> |
{- "documentId": "71633cc0-e45c-4662-a45f-4c5fa44c096a",
- "documentType": "application/pdf"
}The language is controlled via the language query parameter. If the language parameter is not provided, the engine will default to EN (english). Important: The cardId and cardholderId is NOT to be provided by the frontend (portal or app) but to be injected by the application backend as a request parameter. Your backend or integration layer (e.g. API Gateway) is to extract this information from an authenticated session.
| language | string Available values : EN, DE, FR, IT |
| cardId required | string |
| cardholderId required | string |
| formatting | boolean |
| salutation | boolean |
| issuerId | string |
| tracing-id | string |
| dialogueType required | string Default: "development_test" |
required | Array of objects (tech.rivero.edgeconnector.domain.dialogueengine.CreateCardholderInitiatedDialogueRequest.DevelopmentTest.DevelopmentTestTransactionDetails) |
{- "dialogueType": "development_test",
- "transactionDetails": [
- {
- "transactionId": "123456789987654321",
- "transactionTimestamp": 1670935380000,
- "merchantName": "Merchant name",
- "originalCurrency": "AED",
- "originalAmount": "100.35",
- "arn": "22223600332062290049858",
- "transactionType": "credit"
}
]
}{- "conversationId": "string",
- "cardholderId": "2bd52a45-129d-4723-9143-e1c5b5ed34e7",
- "cardId": "b8ba25f3-c945-4ed0-9d4d-e3153a0dd048",
- "caseId": "1234",
- "caseType": "fraud",
- "conversationStatus": "additional_response_required",
- "hasUnreadMessages": true,
- "associatedARNs": [
- "22223600332062290049858"
], - "firstUnreadMessageId": "30747951-2043-40dc-ac70-4613541f7d9d",
- "dialogueCount": 0,
- "dialogues": [
- {
- "dialogueId": "f476f73c-493c-4878-a863-be5b1434ff93",
- "cancelled": true,
- "createdAt": 1670935380000,
- "dialogueType": "collect_affidavit",
- "messages": [
- {
- "type": "text",
- "messageId": "30747951-2043-40dc-ac70-4613541f7d9d",
- "sequenceNr": 0,
- "createdAt": 1670935380000,
- "isRead": true,
- "text": "string",
- "isQuestion": false
}
], - "canUndoLastAnswer": true
}
], - "lastUpdated": 1670935380000,
- "initiatedBy": "agent",
- "initiatedByDialogueType": "collect_affidavit",
- "availableLanguages": [
- "de"
], - "availableFollowupDialogues": [
- "collect_affidavit"
], - "cardholderClaimOutcome": "cardholder_recognized_resolved",
- "issuerId": "123456789"
}Used to fetch image data for a logo ID provided in the rich transaction data message
| logoId required | integer <int64> |
| tracing-id | string |
{- "tracingId": "5f27b818-027a-4008-b410-de01e1dd3a93",
- "error": {
- "message": "string",
- "description": "string",
- "code": "string"
}
}The specification is based on the IETF draft linked below. Its content consists of a single mandatory root field (“status”) and several optional fields. Health Check Response Format for HTTP APIs: https://inadarei.github.io/rfc-healthcheck/
{- "status": "pass",
- "version": "string",
- "output": "string",
- "checks": {
- "property1": [
- {
- "componentType": "component",
- "status": "fail",
- "output": "string"
}
], - "property2": [
- {
- "componentType": "component",
- "status": "fail",
- "output": "string"
}
]
}
}