web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Automate
Unanswered

Twitter V2 API

(0) ShareShare
ReportReport
Posted on by 2

The twitter V2 documentation twitter v2 authentication 

 

You have to build a url, how can I create a custom connector where I can build the url.

trying to pre configure the url and setting them in the oauth field I get this error:

 

 

The request failed with client error: '{"Code":"","Message":"PUT https://power-apim-unitedstates-002.management.azure-api.net/subscriptions/ad336f23-5b09-4b00-b5ef-c16decdffe26/resourceGroups/apim-power-unitedstates-002/providers/Microsoft.ApiManagement/service/power-apim-unitedstates-002/apis/twitter-20api-20v2-5f126f993b6150ff79-5faeda9ea8cd732273?import=true&protocols=https&protocols=http&path=apim/twitter-20api-20v2-5f126f993b6150ff79-5faeda9ea8cd732273&api-version=2019-01-01 failed with BadRequest, content={\"error\":{\"code\":\"ValidationError\",\"message\":\"One or more fields contain incorrect values:\",\"details\":[{\"code\":\"ValidationError\",\"target\":\"representation\",\"message\":\"Parsing error(s): JSON is valid against no schemas from 'oneOf'. Path 'securityDefinitions.oauth2-auth', line 69, position 20.\"},{\"code\":\"ValidationError\",\"target\":\"representation\",\"message\":\"Parsing error(s): The input OpenAPI file is not valid for the OpenAPI specificate https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md (schema https://github.com/OAI/OpenAPI-Specification/blob/master/schemas/v2.0/schema.json).\"}]}}","Target":null,"Details":[],"Innererror":null}'. The correlation Id is 'eaaa0910-199d-462c-8e7d-a8432835c4ac'.

 

 

 

here is the url that generates the error:
https://twitter.com/i/oauth2/authorize?response_type=code&client_id=CID&https://global.consent.azure-apim.net/redirect&scope=tweet.read%20tweet.write%20users.read &state=state&code_challenge=challenge&code_challenge_method=plain

I would like to be able to configure those parameters and have them passed by automate custom connectors. Can I get some assistance with this?

The twitter V2 documentation twitter v2 authentication 

 

You have to build a url, how can I create a custom connector where I can build the url.

trying to pre configure the url and setting them in the oauth field I get this error:

 

 

The request failed with client error: '{"Code":"","Message":"PUT https://power-apim-unitedstates-002.management.azure-api.net/subscriptions/ad336f23-5b09-4b00-b5ef-c16decdffe26/resourceGroups/apim-power-unitedstates-002/providers/Microsoft.ApiManagement/service/power-apim-unitedstates-002/apis/twitter-20api-20v2-5f126f993b6150ff79-5faeda9ea8cd732273?import=true&protocols=https&protocols=http&path=apim/twitter-20api-20v2-5f126f993b6150ff79-5faeda9ea8cd732273&api-version=2019-01-01 failed with BadRequest, content={\"error\":{\"code\":\"ValidationError\",\"message\":\"One or more fields contain incorrect values:\",\"details\":[{\"code\":\"ValidationError\",\"target\":\"representation\",\"message\":\"Parsing error(s): JSON is valid against no schemas from 'oneOf'. Path 'securityDefinitions.oauth2-auth', line 69, position 20.\"},{\"code\":\"ValidationError\",\"target\":\"representation\",\"message\":\"Parsing error(s): The input OpenAPI file is not valid for the OpenAPI specificate https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md (schema https://github.com/OAI/OpenAPI-Specification/blob/master/schemas/v2.0/schema.json).\"}]}}","Target":null,"Details":[],"Innererror":null}'. The correlation Id is 'eaaa0910-199d-462c-8e7d-a8432835c4ac'.

 

 

 

here is the url that generates the error:
https://twitter.com/i/oauth2/authorize?response_type=code&client_id=CID&https://global.consent.azure-apim.net/redirect&scope=tweet.read%20tweet.write%20users.read &state=state&code_challenge=challenge&code_challenge_method=plain

I would like to be able to configure those parameters and have them passed by automate custom connectors. Can I get some assistance with this?

Categories:
I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 227

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard