{ "opencollection": "1.0.0", "info": { "name": "Threads Authorization API", "version": "1.0.0" }, "items": [ { "info": { "name": "Authorization", "type": "folder" }, "items": [ { "info": { "name": "Exchange the Code For a Token", "type": "http" }, "http": { "method": "POST", "url": "http://{{api_host}}/oauth/access_token", "params": [ { "name": "client_id", "value": "{{app_id}}", "type": "query", "description": "Your Threads App ID displayed in App Dashboard > App settings > Basic > Threads App ID. Example: 990602627938098." }, { "name": "client_secret", "value": "{{app_secret}}", "type": "query", "description": "Your Threads App Secret displayed in App Dashboard > App settings > Basic > Threads App secret. Example: a1b2C3D4." }, { "name": "code", "value": "{{code}}", "type": "query", "description": "Authorization Code" }, { "name": "grant_type", "value": "authorization_code", "type": "query", "description": "This value is required" }, { "name": "redirect_uri", "value": "{{redirect_uri}}", "type": "query", "description": "The redirect URI you passed when you directed the user to the Authorization Window. This must be the same URI or the request will be rejected." } ], "body": { "type": "form-urlencoded", "data": [] } }, "docs": "Once you receive a code, exchange it for a short-lived access token by sending a `POST` request to the /oauth/access_token [endpoint](https://developers.facebook.com/docs/threads/get-started/get-access-tokens-and-permissions#step-2--exchange-the-code-for-a-token)" }, { "info": { "name": "Get Long-Lived Access Token", "type": "http" }, "http": { "method": "GET", "url": "http://{{api_host}}/access_token", "params": [ { "name": "grant_type", "value": "th_exchange_token", "type": "query" }, { "name": "client_secret", "value": "{{app_secret}}", "type": "query" } ] }, "docs": "Use the `GET` /access_token [endpoint](https://developers.facebook.com/docs/threads/get-started/long-lived-tokens#get-a-long-lived-token) to exchange a short-lived Threads user access token for a long-lived token." } ] } ], "bundled": true }