POST /v1/channels/oauth/select
POST
/v1/channels/oauth/select
const url = 'https://seu-endereco-da-api/v1/channels/oauth/select';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"selectionToken":"example","pageId":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://seu-endereco-da-api/v1/channels/oauth/select \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "selectionToken": "example", "pageId": "example" }'Permissão que a Chave de acesso precisa: Gerenciar canais (channels:manage).
Authorizations
Seção intitulada “Authorizations”Request Bodyrequired
Seção intitulada “Request Bodyrequired”Media typeapplication/json
object
selectionToken
required
string
pageId
required
string
Example generated
{ "selectionToken": "example", "pageId": "example"}