missing details in response of organization api

we are using novu 0.22.0, we are tried to create organization through api and get api key back as response so that we can use that api key to switch to new organization. docs says get / create organization api provide api key in response. "partnerConfigurations": [ { "projectIds": [ "<string>" ], "accessToken": "<string>", "configurationId": "<string>", "teamId": "<string>", "partnerType": "vercel" } but we are getting just {'_id': '643640ce826da1abcb082278', 'name': 'xyz', 'createdAt': '2023-04-12T05:25:34.235Z', 'updatedAt': '2023-04-12T05:25:34.235Z', '__v': 0}
9 Replies
Ask Inkeep
Ask Inkeep5mo ago
Hi @Prathap Belli, I'm an AI assistant for Novu. While a team member reviews this question, I'll see if I can find relevant sources for your question. ----------------------------- While I generate an answer, here are some sources that might be helpful: * Create an organization * Fetch all organizations * Clicksend * Fetch current organization details -----------------------------
Ask Inkeep
Ask Inkeep5mo ago
Answer It appears there might be some confusion or misunderstanding regarding the response data from the Novu API, specifically related to creating or fetching organization details and obtaining API keys. According to the official Novu documentation, the responses for creating an organization (1) and fetching all organizations (2) include details such as name, logo, and partner configurations but do not explicitly mention returning an API key for the organization. The partnerConfigurations field you referred to in the document about creating an organization includes details such as projectIds, accessToken, configurationId, teamId, and partnerType, but it's essential to note that accessToken here relates to partner configurations and might not directly correspond to the Novu API key you're expecting to use for authentication (1) . The process of obtaining or managing API keys for Novu involves using specific endpoints or functionalities dedicated to API key management rather than the organization creation or fetching endpoints. Unfortunately, the information provided in the sources does not cover the exact process for retrieving the API key immediately upon creating a new organization. For direct management of API keys, including creation or regeneration, Novu might offer different mechanisms through its dashboard or specific endpoints, not directly covered in the provided documentation. It's suggested to review Novu's documentation and dashboard for features related to API key management or consider reaching out in the Novu community forums or support for more guidance on this specific workflow.
Ask Inkeep
Ask Inkeep5mo ago
Got it. Tagging @Support for additional help.
Prathap Belli
Prathap Belli5mo ago
isnt it access token is api key to access that organization? if not how we can we access newly created organization through api?
Prathap Belli
Prathap Belli5mo ago
Discord
Discord - A New Way to Chat with Friends & Communities
Discord is the easiest way to communicate over voice, video, and text. Chat, hang out, and stay close with your friends and communities.
Pawan Jain
Pawan Jain5mo ago
@Prathap Belli We removed api keys from response due to security issue
Prathap Belli
Prathap Belli5mo ago
How can I get apikeys for newly created organozation and what is the purpose of create organization api. As I informed earlier our use case is to automate creation of new organization through script/api.
Dima Grossman
Dima Grossman5mo ago
@Prathap Belli create organization actually never returned an API Key, it's just creating an organization. What you are seeing on docs is partnerConfiguration which is an optional field that is only relevant for our cloud deployment. patnerConfiguration.accessToken !== apikey for the organization. It's an access token related to our partners program (vercel, netlify, etc...)
Prathap Belli
Prathap Belli5mo ago
@Dima Grossman Thanks for the reply, Got it, but our requirement is how we can get api key for newly created organization to access.
Want results from more Discord servers?
Add your server