{"_id":"59780fde7bb22500209771e5","project":"55c8cff571d7580d0063a5e5","version":{"_id":"57624356653c2d2200fec79c","__v":22,"project":"55c8cff571d7580d0063a5e5","createdAt":"2016-06-16T06:12:38.244Z","releaseDate":"2016-06-16T06:12:38.244Z","categories":["57624356653c2d2200fec79d","57624356653c2d2200fec79e","57624356653c2d2200fec79f","57624356653c2d2200fec7a0","57624356653c2d2200fec7a1","57624356653c2d2200fec7a2","57624356653c2d2200fec7a3","57624356653c2d2200fec7a4","57624356653c2d2200fec7a5","57624356653c2d2200fec7a6","57624356653c2d2200fec7a7","57624356653c2d2200fec7a8","57624356653c2d2200fec7a9","57624356653c2d2200fec7aa","5779ca1b99b40b0e005abb3a","5779d198aea88b0e00f63277","5797d3ab17ced017003c4be4","57ac170ef1cdae0e0053cdfc","57dbfc723ed3450e00dc9e6d","5804d12d16161c0f0077df9b","5841064b652e5b0f0015a7c8","588b5e5f2966b2230009cbf9","58a68ebf3239fa0f00857619","58c23c8b4922930f0050ac91","58fd1460809fc30f00f2ee07","5934eaf5328680002d77de6a","594bf91601cfe6000f40f4c5","595c4ed696b447001ba0cf6d","596524495cee50001575f5be","5970d4f1313162004dd303b5","59780fac24dbd1001a1fa057","59a8cfd3ead78a002d63cafe","59e0323d93da1f001c9ec170","5b0c16f2be9fcb0003e28222","5ba8fd1a4c8c220003a08f0f"],"is_deprecated":false,"is_hidden":false,"is_beta":true,"is_stable":true,"codename":"","version_clean":"4.0.0","version":"4"},"category":{"_id":"59780fac24dbd1001a1fa057","project":"55c8cff571d7580d0063a5e5","version":"57624356653c2d2200fec79c","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2017-07-26T03:42:36.945Z","from_sync":false,"order":20,"slug":"account-oauth-clients-redirect-uri","title":"Account OAuth Client Redirect URI"},"user":"56f99ab84d2b4f3400edb636","githubsync":"","__v":0,"parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2017-07-26T03:43:26.294Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":0,"body":"## Supported Services\n* [List OAuth Client Redirect URIs](doc:list-account-oauth-clients-redirect-uris)\n* [Get OAuth Client Redirect URI](doc:get-account-oauth-clients-redirect-uri)\n* [Create OAuth Client Redirect URI](doc:create-account-oauth-clients-redirect-uri)\n* [Delete OAuth Client Redirect URI](doc:delete-account-oauth-clients-redirect-uri)\n\n## OAuth Client Redirect URI Summary Object\n[block:parameters]\n{\n  \"data\": {\n    \"0-0\": \"`id`\",\n    \"h-0\": \"Property\",\n    \"h-1\": \"Type\",\n    \"h-2\": \"Description\",\n    \"0-1\": \"Integer\",\n    \"0-2\": \"OAuth Client Redirect URI ID\",\n    \"1-0\": \"`client`\",\n    \"1-1\": \"Client Object\",\n    \"1-2\": \"Client details\",\n    \"2-0\": \"`redirect_uri`\",\n    \"2-1\": \"Redirect URI Object\",\n    \"2-2\": \"Redirect URI details\",\n    \"3-0\": \"Access Token\",\n    \"3-1\": \"String\",\n    \"3-2\": \"The newly created Access Token\",\n    \"4-0\": \"State\",\n    \"4-1\": \"String\",\n    \"4-2\": \"An opaque value used by the client to maintain state between the request and callback.  The value of state is provided as input, and is returned in the response.\"\n  },\n  \"cols\": 3,\n  \"rows\": 3\n}\n[/block]\nHere is an example:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n    \\\"id\\\": 33,\\n    \\\"client\\\": {\\n        \\\"id\\\": 5327446,\\n        \\\"client_name\\\": \\\"Un-named app for account 349034\\\",\\n    },\\n    \\\"redirect_uri\\\": {\\n        \\\"id\\\": 12,\\n        \\\"uri\\\": \\\"https://www.google.com/redirect\\\",\\n        \\\"type\\\": \\\"redirect\\\"\\n    }\\n}\",\n      \"language\": \"json\",\n      \"name\": null\n    }\n  ]\n}\n[/block]\n## OAuth Client Full Object\n\nAn OAuth Client Full Object is identical as a Summary Object.\n\n## Client Object\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Property\",\n    \"h-1\": \"Description\",\n    \"0-0\": \"`id`\",\n    \"0-1\": \"Client ID\",\n    \"1-0\": \"`client_name`\",\n    \"1-1\": \"Client Name\"\n  },\n  \"cols\": 2,\n  \"rows\": 2\n}\n[/block]\n## Redirect URI Object\n[block:parameters]\n{\n  \"data\": {\n    \"0-0\": \"`id`\",\n    \"1-0\": \"`uri`\",\n    \"2-0\": \"`type`\",\n    \"0-1\": \"Redirect URI ID\",\n    \"1-1\": \"The Uniform Resource Identifier is a string used to identify the path to be redirected\",\n    \"2-1\": \"redirect\"\n  },\n  \"cols\": 2,\n  \"rows\": 3\n}\n[/block]","excerpt":"The [Account OAuth Clients API](doc:account-oauth-clients) supports redirect-uri. Since an OAuth Client is created by a Phone.com admin who does not know what redirect uris should be assigned, API users may use the OAuth Client Redirect URIs API to create, list, get and delete redirect uris.","slug":"account-oauth-clients-redirect-uris","type":"basic","title":"OAuth Client Redirect URIs"}

OAuth Client Redirect URIs

The [Account OAuth Clients API](doc:account-oauth-clients) supports redirect-uri. Since an OAuth Client is created by a Phone.com admin who does not know what redirect uris should be assigned, API users may use the OAuth Client Redirect URIs API to create, list, get and delete redirect uris.

## Supported Services * [List OAuth Client Redirect URIs](doc:list-account-oauth-clients-redirect-uris) * [Get OAuth Client Redirect URI](doc:get-account-oauth-clients-redirect-uri) * [Create OAuth Client Redirect URI](doc:create-account-oauth-clients-redirect-uri) * [Delete OAuth Client Redirect URI](doc:delete-account-oauth-clients-redirect-uri) ## OAuth Client Redirect URI Summary Object [block:parameters] { "data": { "0-0": "`id`", "h-0": "Property", "h-1": "Type", "h-2": "Description", "0-1": "Integer", "0-2": "OAuth Client Redirect URI ID", "1-0": "`client`", "1-1": "Client Object", "1-2": "Client details", "2-0": "`redirect_uri`", "2-1": "Redirect URI Object", "2-2": "Redirect URI details", "3-0": "Access Token", "3-1": "String", "3-2": "The newly created Access Token", "4-0": "State", "4-1": "String", "4-2": "An opaque value used by the client to maintain state between the request and callback. The value of state is provided as input, and is returned in the response." }, "cols": 3, "rows": 3 } [/block] Here is an example: [block:code] { "codes": [ { "code": "{\n \"id\": 33,\n \"client\": {\n \"id\": 5327446,\n \"client_name\": \"Un-named app for account 349034\",\n },\n \"redirect_uri\": {\n \"id\": 12,\n \"uri\": \"https://www.google.com/redirect\",\n \"type\": \"redirect\"\n }\n}", "language": "json", "name": null } ] } [/block] ## OAuth Client Full Object An OAuth Client Full Object is identical as a Summary Object. ## Client Object [block:parameters] { "data": { "h-0": "Property", "h-1": "Description", "0-0": "`id`", "0-1": "Client ID", "1-0": "`client_name`", "1-1": "Client Name" }, "cols": 2, "rows": 2 } [/block] ## Redirect URI Object [block:parameters] { "data": { "0-0": "`id`", "1-0": "`uri`", "2-0": "`type`", "0-1": "Redirect URI ID", "1-1": "The Uniform Resource Identifier is a string used to identify the path to be redirected", "2-1": "redirect" }, "cols": 2, "rows": 3 } [/block]