{"_id":"585a9ef42b8e9b19008e0f28","project":"54eb50e5615ffc1900305a16","user":"57a98d832242630e00cc8df7","__v":0,"category":{"_id":"582dc59ee1b8692300c0dd03","__v":0,"project":"54eb50e5615ffc1900305a16","version":"54eb63b859b1172100334fae","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-11-17T14:58:38.431Z","from_sync":false,"order":15,"slug":"line","title":"LINE messaging"},"version":{"_id":"54eb63b859b1172100334fae","project":"54eb50e5615ffc1900305a16","forked_from":"54eb63a1867e1917009b711d","__v":27,"createdAt":"2015-02-23T17:30:32.501Z","releaseDate":"2015-02-23T17:30:32.501Z","categories":["54eb63b959b1172100334faf","54eb63b959b1172100334fb0","54eb63b959b1172100334fb1","54eb63b959b1172100334fb2","54ed8dd4ab373e2300f50eae","54ed99b2ab373e2300f50ede","55153a6de68daa2f00cff838","551546edbc466623002afe72","5515472ac28d6125001b8884","55154749c28d6125001b8885","555d9b4106dfec0d00d38ea7","5613e06e433e5735007c7708","5624bbb785a31117001c5403","56669e857cc81e0d00253f8e","568b8d837a42220d00498311","56a632277ef6620d00e2f18a","56d8147c3eb4dd0b00201aac","57a9ce2fac6db30e000d7efd","57a9cf4e944ea60e00dc3f74","58172386715dce0f00da4aa0","582dc59ee1b8692300c0dd03","589b19b4fec2730f0082e040","58b04a023529383900a759b5","58b92d1598157a0f004869bf","592e7685c58275000f20174f","59392839e376d4002f8a0474","59393064e376d4002f8a05a1","5947ae0d4005e2000f3a4fec","594a74df1d1de5001ab3517a","5954bc387a147f001b918915"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1"},"parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-12-21T15:25:40.714Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"settings":"","results":{"codes":[]},"auth":"required","params":[],"url":""},"isReference":false,"order":4,"body":"Besides sending messages, our platform fully supports **the reception of incoming messages from your users**. Configuration and Action setup will enable you to achieve that.\n[block:callout]\n{\n  \"type\": \"warning\",\n  \"title\": \"Receiving LINE messages\",\n  \"body\": \"**Configuration **and **Action **setup must be completed before you start using **[Receive LINE messages](/docs/receive-line-message-api)** method.\"\n}\n[/block]\n**Configuration **is a logical container for Actions. You can choose a method of incoming message delivery through the [Action setup](/docs/receive-line-message-api), but before you do that, Configuration must be created since the **Action** can only exist inside of the Configuration container.\n[block:callout]\n{\n  \"type\": \"info\",\n  \"title\": \"Important\",\n  \"body\": \"Configuration container must be created after the **Application **setup and before the **Action **setup.\"\n}\n[/block]\n\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/40b9c6a-fb2.PNG\",\n        \"fb2.PNG\",\n        496,\n        93,\n        \"#dfd7d6\"\n      ],\n      \"sizing\": \"smart\"\n    }\n  ]\n}\n[/block]\nAvailable methods:\n* [List all configurations](#list-all-configuration) \n* [Get a single configuration](#get-single-configuration)\n* [Create a new configuration](#create-new-configuration)\n* [Delete the configuration](#delete-configuration) \n[block:api-header]\n{\n  \"type\": \"get\",\n  \"title\": \"List all configurations\"\n}\n[/block]\nThis method allows you to get your app configurations.\n\n```\nhttps://api.infobip.com/line/1/applications/{applicationKey}/configurations\n```\n\n###Path params\n\n|Parameter|Type|Default value|Description|\n|-|-|-|\n|applicationKey|string|-|Application key|\n\n###Request example\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"GET /line/1/applications/8F0792F86035A9F4290821F1EE6BC06A/configurations HTTP/1.1\\nHost: api.infobip.com\\nAuthorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]\n###Response\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n  \\\"configurations\\\":[\\n    {\\n      \\\"key\\\": \\\"CB0F6CEC031D81116AB72720C1765A9D\\\",\\n    }\\n  ]\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]\nOn success, the response header HTTP status code will be `200 OK`. \n\n|Parameter|Type|Description|\n|-|-|-|\n|*configurations*|String|List or configurations.|\n|*key*|String|Configuration key.|\n\n\nOn error, you will receive an error response status code in the header and the response body will contain an error object. If you try to create an application when you do not have the user’s authorization, you will receive a `401` Unauthorized error.\n[block:api-header]\n{\n  \"type\": \"get\",\n  \"title\": \"Get a single configuration\"\n}\n[/block]\nThis method allows you to get configuration for your application.\n\n```\nhttps://api.infobip.com/line/1/applications/{applicationKey}/configurations/{configurationKey}\n```\n\n\n###Path params\n\n|Parameter|Type|Default value|Description|\n|-|-|-|\n|applicationKey|string|-|Application key|\n|configurationKey|string|-|Configuration key|\n\n###Request example\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"GET /line/1/applications/8F0792F86035A9F4290821F1EE6BC06A/configurations/CB0F6CEC031D81116AB72720C1765A9D HTTP/1.1\\nHost: api.infobip.com\\nAuthorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]\n###Response\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n  \\\"key\\\": \\\"CB0F6CEC031D81116AB72720C1765A9D\\\"\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]\nOn success, the response header HTTP status code will be `200 OK`. \n\n|Parameter|Type|Description|\n|-|-|-|\n|*key*|String|Configuration key.|\n\nOn error, you will receive an error response status code in the header and the response body will contain an error object. If you try to create an application when you do not have the user’s authorization, you will receive a `401` Unauthorized error.\n\n[block:api-header]\n{\n  \"type\": \"post\",\n  \"title\": \"Create new configuration\"\n}\n[/block]\nThis method allows you to create the configuration.\n\n```\nhttps://api.infobip.com/line/1/applications/{applicationKey}/configurations\n```\n\n###Path params\n\n|Parameter|Type|Default value|Description|\n|-|-|-|\n|applicationKey|string|-|Application key|\n\n###Request example\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"POST /line/1/applications/8F0792F86035A9F4290821F1EE6BC06A/configurations HTTP/1.1\\nHost: api.infobip.com\\nAuthorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]\n###Response\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n  \\\"key\\\": \\\"CB0F6CEC031D81116AB72720C1765A9D\\\"\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]\nOn success, the response header HTTP status code will be `200 OK`. \n\n|Parameter|Type|Description|\n|-|-|-|\n|*key*|String|Configuration key.|\n\nOn error, you will receive an error response status code in the header and the response body will contain an error object. If you try to create a configuration when you do not have the user’s authorization, you will receive a `401` Unauthorized error. Attempt to create a new configuration when another configuration already exists will result in `409 CONFLICT` status.\n[block:api-header]\n{\n  \"type\": \"delete\",\n  \"title\": \"Delete the configuration\"\n}\n[/block]\nThis method allows you to delete the configuration.\n\n```\nhttps://api.infobip.com/line/1/applications/{applicationKey}/configurations/{configurationKey}\n```\n\n###Path params\n\n|Parameter|Type|Default value|Description|\n|-|-|-|\n|applicationKey|string|-|Application key|\n|configurationKey|string|-|Configuration key|\n\n###Request example\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"DELETE /line/1/line/8F0792F86035A9F4290821F1EE6BC06A/configurations/CB0F6CEC031D81116AB72720C1765A9D\\nHost: api.infobip.com\\nAuthorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]\nOn success, the response header HTTP status code will be `204 No Content`. \n\nOn error, you will receive an error response status code in the header and the response body will contain an error object. If you try to create an application when you do not have the user’s authorization, you will receive a `401` Unauthorized error.","excerpt":"Create and manage application configurations for receiving messages.","slug":"line-chat-configuration","type":"basic","title":"Configuration"}

Configuration

Create and manage application configurations for receiving messages.

Besides sending messages, our platform fully supports **the reception of incoming messages from your users**. Configuration and Action setup will enable you to achieve that. [block:callout] { "type": "warning", "title": "Receiving LINE messages", "body": "**Configuration **and **Action **setup must be completed before you start using **[Receive LINE messages](/docs/receive-line-message-api)** method." } [/block] **Configuration **is a logical container for Actions. You can choose a method of incoming message delivery through the [Action setup](/docs/receive-line-message-api), but before you do that, Configuration must be created since the **Action** can only exist inside of the Configuration container. [block:callout] { "type": "info", "title": "Important", "body": "Configuration container must be created after the **Application **setup and before the **Action **setup." } [/block] [block:image] { "images": [ { "image": [ "https://files.readme.io/40b9c6a-fb2.PNG", "fb2.PNG", 496, 93, "#dfd7d6" ], "sizing": "smart" } ] } [/block] Available methods: * [List all configurations](#list-all-configuration) * [Get a single configuration](#get-single-configuration) * [Create a new configuration](#create-new-configuration) * [Delete the configuration](#delete-configuration) [block:api-header] { "type": "get", "title": "List all configurations" } [/block] This method allows you to get your app configurations. ``` https://api.infobip.com/line/1/applications/{applicationKey}/configurations ``` ###Path params |Parameter|Type|Default value|Description| |-|-|-| |applicationKey|string|-|Application key| ###Request example [block:code] { "codes": [ { "code": "GET /line/1/applications/8F0792F86035A9F4290821F1EE6BC06A/configurations HTTP/1.1\nHost: api.infobip.com\nAuthorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==", "language": "json" } ] } [/block] ###Response [block:code] { "codes": [ { "code": "{\n \"configurations\":[\n {\n \"key\": \"CB0F6CEC031D81116AB72720C1765A9D\",\n }\n ]\n}", "language": "json" } ] } [/block] On success, the response header HTTP status code will be `200 OK`. |Parameter|Type|Description| |-|-|-| |*configurations*|String|List or configurations.| |*key*|String|Configuration key.| On error, you will receive an error response status code in the header and the response body will contain an error object. If you try to create an application when you do not have the user’s authorization, you will receive a `401` Unauthorized error. [block:api-header] { "type": "get", "title": "Get a single configuration" } [/block] This method allows you to get configuration for your application. ``` https://api.infobip.com/line/1/applications/{applicationKey}/configurations/{configurationKey} ``` ###Path params |Parameter|Type|Default value|Description| |-|-|-| |applicationKey|string|-|Application key| |configurationKey|string|-|Configuration key| ###Request example [block:code] { "codes": [ { "code": "GET /line/1/applications/8F0792F86035A9F4290821F1EE6BC06A/configurations/CB0F6CEC031D81116AB72720C1765A9D HTTP/1.1\nHost: api.infobip.com\nAuthorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==", "language": "json" } ] } [/block] ###Response [block:code] { "codes": [ { "code": "{\n \"key\": \"CB0F6CEC031D81116AB72720C1765A9D\"\n}", "language": "json" } ] } [/block] On success, the response header HTTP status code will be `200 OK`. |Parameter|Type|Description| |-|-|-| |*key*|String|Configuration key.| On error, you will receive an error response status code in the header and the response body will contain an error object. If you try to create an application when you do not have the user’s authorization, you will receive a `401` Unauthorized error. [block:api-header] { "type": "post", "title": "Create new configuration" } [/block] This method allows you to create the configuration. ``` https://api.infobip.com/line/1/applications/{applicationKey}/configurations ``` ###Path params |Parameter|Type|Default value|Description| |-|-|-| |applicationKey|string|-|Application key| ###Request example [block:code] { "codes": [ { "code": "POST /line/1/applications/8F0792F86035A9F4290821F1EE6BC06A/configurations HTTP/1.1\nHost: api.infobip.com\nAuthorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==", "language": "json" } ] } [/block] ###Response [block:code] { "codes": [ { "code": "{\n \"key\": \"CB0F6CEC031D81116AB72720C1765A9D\"\n}", "language": "json" } ] } [/block] On success, the response header HTTP status code will be `200 OK`. |Parameter|Type|Description| |-|-|-| |*key*|String|Configuration key.| On error, you will receive an error response status code in the header and the response body will contain an error object. If you try to create a configuration when you do not have the user’s authorization, you will receive a `401` Unauthorized error. Attempt to create a new configuration when another configuration already exists will result in `409 CONFLICT` status. [block:api-header] { "type": "delete", "title": "Delete the configuration" } [/block] This method allows you to delete the configuration. ``` https://api.infobip.com/line/1/applications/{applicationKey}/configurations/{configurationKey} ``` ###Path params |Parameter|Type|Default value|Description| |-|-|-| |applicationKey|string|-|Application key| |configurationKey|string|-|Configuration key| ###Request example [block:code] { "codes": [ { "code": "DELETE /line/1/line/8F0792F86035A9F4290821F1EE6BC06A/configurations/CB0F6CEC031D81116AB72720C1765A9D\nHost: api.infobip.com\nAuthorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==", "language": "json" } ] } [/block] On success, the response header HTTP status code will be `204 No Content`. On error, you will receive an error response status code in the header and the response body will contain an error object. If you try to create an application when you do not have the user’s authorization, you will receive a `401` Unauthorized error.