API Access
Hey, I have trouble accessing the API. When I go to https://twenty.com/developers/rest-api/core#/ and enter my details it just continues to display the "A token is required..." message and the API field has a red border (screenshots follow). Its a self hosted instance
Twenty.com
Open Source CRM
4 Replies
I just saw a related issue on github, but its marked as closed. Does that mean its fixed but not yet available in the newest version or is this another bug?
https://github.com/twentyhq/twenty/issues/8295
GitHub
API not working for self-hosted instance · Issue #8295 · twentyhq/t...
Scenario: Log in Go to Settings Toggle Advanced on Go to API & Webhooks Create new API key or use existing one Copy API key and go here, select Localhost or other depending where self-hosted in...
@Jonas the only way I could get around this error was to purchase a subscription to Twenty then you have access to the documentation if you create an api key then use that key in the documentation area. There has been talk of using a token from a local environment could work but I have never been able to get that to work. But for $9 you get access to the documentation you need.
oh thats unfortunate
@Jonas there are 2 additional ways to get around this error:
- go to demo, create API key and use it to get the API schema or
- send a request directly to your server on this endpoint /open-api/core with your Bearer token in authorization
But be aware that API schema will change every time you add/remove objects (only few endpoints)