https://linen.dev logo
i
in new website where can i get the api key? i was tried to create a project but it ask for api key. so i goes to the old website and use it but it said invalid
c
can you share a screenshot where it's asking for api key?
i
I want to hit Post : Create a project Api
a
Hey @imtiaztamim , we've updated our project/organization level APIs, and they no longer accept the old Org API keys or project API keys. Going forward, new projects should be created directly from the dashboard. We'll update our API documentation to reflect this change.
i
but i want to create project under my org through api so now how can i do that?
a
You can use this endpoint: https://docs.composio.dev/api-reference/projects/post-org-owner-project-new It accepts Org API key & here's a cURL for ref:
Copy code
curl --location 'https://backend.composio.dev/api/v3/org/owner/project/new' \
--header 'x-org-api-key: oak_.....' \
--header 'Content-Type: application/json' \
--data '{
  "name": "{{project-name}}"
}'
project is created but no api key create for this project then i try to hit this api curl https://backend.composio.dev/api/v3/org/owner/project/proj_abc123xyz456 \ -H "x-api-key: "
how can i able to create the api key now
c
the API has an optional should_create_api_key bool field which can be set to true to return the API key
i
when the full documentation will be updated?
a
We've removed certain admin level endpoints from docs as few of them can be invoked from dashboard only. Passing the additional optional field
should_create_api_key
should return the API key.. lmk if you need anything in specific
c
Org api is used for org/admin level operations like creating projects etc and project api is used for creating connections, executing tool calls etc.
i
i tried this api but still it shows invalid
a
hey theres a issue with the API ref in doc which is using
staging-
instead of just
backend
. Can you re-try with
https://backend.composio.dev..
and lmk if that worked for you?
l
Do you need developer?
i
@abhishekpatil4 cannot i make initiate status to active? with status api?
a
no
i
i dont want to show pop up for auth while create the instance from our system how can i do it like it initiate but how can i make it active?
c
A connection is in
INITIATED
state when you initiate a connection for a toolkit using OAuth2, in order for that to change to
ACTIVE
one needs to visit the auth URL and complete the OAuth flow (ie grant the necessary scopes), when you say pop-up I'm assuming you're referring to the OAuth consent page (lmk otherwise), this must be done.
i
is it any other way to bypass this flow? or any plan from your side to complete this type process? because from our system we dont want to show user to visit the auth url or can you add a feature for organization where we can customize the auth popup screen and will it apply for all the projects under this org instead of doing from project setting?
a
No this flow can't be bypassed. If you have authentication setup already you use the inject custom auth, learn more here: https://docs.composio.dev/docs/custom-auth-params > customize the auth popup This is done at project level because some users prefer to use different project for different product (offering). We can share an API that you can use to configure this programmatically.
i
is it possible to find which email id is initiate or active in a auth config?
@abhishekpatil4
there has 2 question when you available please replied both
a
Getting to know the email ID depends on toolkit, for ex of Gmail we have a tool
GMAIL_GET_PROFILE
which you can call to know the associated email ID.
Can tou share a screen recording of this issue?
i
with which api i can see the email list
c
Email list? didn't quite get you.. can you share more details?
i
In auth config i have to connect my gmail right? So based on this config i want to see which email is connected
c
You can use GMAIL_GET_PROFILE to check that.
i
with which api? i need to know which gmail is connected
c
Hey, you can use
GMAIL_GET_PROFILE
tool to retrieve your connected account info.