How to access GraphQL APIs from twenty ?
How to access GraphQL APIs from twenty ?
I've managed to selfhost it and created the API key
Have entered the 'Other', 'IP:3000' and key
Cant think of what is going wrong
15 Replies
+ why does accessing APIs should bring to twenty website ? and not on my hosted IP itself
this community is dead with no response or what ?
I'm having this same issue now
Hi @jonathan8575, it seems that your server is not answering. What is your setup? Are you looking to self-host or to contribute?
self-host
im able to use the UI but simply cannot get to see how to access graphql
Hi @jonathan8575, could you provide the steps you followed for self hosting?
have mentioned it above already
I so want to try and stick to it - but getting answers from twenty team has been hard and slow
@jonathan8575 generate key in Settings > Developers, copy it, in GraphQL API set { "Authorization": "Bearer your_key"; } and you're set
Better solution is to use web interface which interacts directly with your local host (not sure how it's done but it works) which is under https://twenty.com/developers/
And don't be harsh on Twenty team, they're humans too
Also, FYI, local GraphQL has only Metadata queries and mutations, you can't access the Core queries and mutations this way (@charles is that expected?)
have mentioned it above alreadyNope, we need to know what doc and steps you did follow so we can help you to debug. Did you follow one of these? https://twenty.com/developers Do you use docker or did you setup locally?
Twenty - Docs
Twenty is a CRM designed to fit your unique business needs.
Using docker on hetzner and had run the bash script from ur site which set it up
@jonathan8575 so the app is properly running but you want to use the API direclty? graphql or rest?
Sorry for the slow answer, I'm just back from PTO
graphql
yes the app is totally fine
that's weird, if the app is running, the graphql API is running
could you share your network tab while running your app?
(in developer console from your browser)
I would like to see the /graphql calls
Maybe that's something outside of app's scope and it's strictly related to network problems? Someone asked in discussion why couldn't ask the app hosted on server in local network using docs and that's because docs don't have access to local network, only to device sending requests
sorry folks, we dropped using twenty at the moment
ok, no worries!