openapi: 3.2.0
info:
title: Chat and Messaging - Parley Config API
version: v1
description: 'This API enables a secure communication between your agent/bot desktop and the client website/mobile app.
## [Source view](https://app.swaggerhub.com/apis/kpn/secure-messenger-parley/)
[Documentation view](https://app.swaggerhub.com/apis-docs/kpn/secure-messenger-parley/)
---
## [KPN Developer](https://developer.kpn.com/)
[Getting Started](https://developer.kpn.com/getting-started)
---'
termsOfService: https://developer.kpn.com/legal
contact:
name: API Support
email: api_developer@kpn.com
url: https://developer.kpn.com/support
servers:
- url: https://api-prd.kpn.com/communication/parley/secure-messenger
description: Production server
tags:
- name: Config
paths:
/config:
get:
tags:
- Config
summary: Get Config
description: Request the configuration for the identified account.
This contains settings and display settings of the account.
All colors are RGB colors saved in hexadecimals.
operationId: GetConfig
security:
- oauth2: []
parameters:
- $ref: '#/components/parameters/api_version'
- $ref: '#/components/parameters/device_id'
- $ref: '#/components/parameters/auth_string'
responses:
'200':
description: Success
content:
application/json:
schema:
allOf:
- type: object
properties:
data:
$ref: '#/components/schemas/GetConfigResult/allOf/0/properties/data'
required:
- data
- $ref: '#/components/schemas/GetConfigResult/allOf/1'
examples:
success:
summary: success
value:
data:
name: string
telephone: string
font: 0
allowImage: true
backgroundColor: string
backgroundImage: string
iOSStatusBarTextColor: 0
navBackgroundColor: string
navTextColor: string
navHideCloseButton: string
dateColor: string
dateBorder: true
iOSInputContainerBackgroundColor: string
inputFieldBackgroundColor: string
inputFieldTextColor: string
inputFieldPlaceholderColor: string
inputBackgroundColor: string
inputTextColor: string
balloonStyle: 0
userBackgroundColor: string
userTextColor: string
userTextLinkColor: string
userTimeColor: string
userSentColor: string
accountBackgroundColor: string
accountTextColor: string
accountTextLinkColor: string
accountTimeColor: string
infoTextBackgroundColor: string
infoTextBorder: 0
infoTextColor: string
infoText: string
infoText2: string
genericPushMessage: string
notifications: []
status: SUCCESS
metadata:
values:
url: config
method: get
duration: 0.01
'401':
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/GetConfigResult/allOf/1'
examples:
error:
summary: invalid api key
value:
notifications:
- type: error
message: api_key_not_valid
status: ERROR
metadata:
values:
url: string
method: string
duration: 0.01
components:
parameters:
api_version:
in: header
name: api-version
schema:
type: string
description: API Version. If no version is provided it defaults to latest version.
required: false
auth_string:
in: header
name: authString
schema:
type: string
description: The authentication of an user in your application. This string needs to be generated in a trusted environment (not inside the app). Documentation about how to generate this string can be found [here](https://gist.github.com/Gerben-T/36c71faf1879022ac5fa65ccd77b8f75)
required: false
device_id:
in: header
name: uniqueAppDeviceId
schema:
type: string
description: You can use/generate your own uniqueAppDeviceId. It should be at least 10 characters long.
required: true
schemas:
GetConfigResult:
allOf:
- type: object
properties:
data:
properties:
name:
type: string
description: 'The name of the authenticated application '
telephone:
type: string
description: 'The telephone number of the helpdesk '
font:
type: integer
minimum: 1
maximum: 5
description: "The font for all the text