# Assistance with Organization Association for API Access Message:

**URL:** <https://community.openai.com/t/assistance-with-organization-association-for-api-access-message/743407>\
**Category:** API\
**Tags:** chatgpt, api\
**Created:** [May 12, 2024, 9:50pm UTC](https://community.openai.com/t/assistance-with-organization-association-for-api-access-message/743407 "2024-05-12T21:50:58Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ericcarlosquesada](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/ericcarlosquesada/32/146848_2.png) [@ericcarlosquesada](https://community.openai.com/u/ericcarlosquesada)\
**Post date:** [May 12, 2024, 9:50pm UTC](https://community.openai.com/t/assistance-with-organization-association-for-api-access-message/743407/1 "2024-05-12T21:50:58Z")

</div>

Somebody cay you help me?  
I created an organization and project but this one below persists:

Error calling the OpenAI API: {  
error: {  
message: ‘You must be a member of an organization to use the API. Please contact us through our help center at [help.openai.com](http://help.openai.com).’,  
type: ‘invalid\_request\_error’,  
param: null,  
code: ‘no\_organization’  
}  
}

---

<div class="post-metadata">

**Author:** ![DavidOS366](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/davidos366/32/432385_2.png) [@DavidOS366](https://community.openai.com/u/DavidOS366)\
**Post date:** [May 12, 2024, 9:59pm UTC](https://community.openai.com/t/assistance-with-organization-association-for-api-access-message/743407/2 "2024-05-12T21:59:25Z")

</div>

> [@ericcarlosquesada](#):
>
> You must be a member of an organization to use the API. Please contact us through our help center at [help.openai.com](http://help.openai.com)

I think you need to create an organization before creating a key, because they replaced the keys with project specific keys.

---

<div class="post-metadata">

**Author:** ![ericcarlosquesada](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/ericcarlosquesada/32/146848_2.png) [@ericcarlosquesada](https://community.openai.com/u/ericcarlosquesada)\
**Post date:** [May 12, 2024, 10:05pm UTC](https://community.openai.com/t/assistance-with-organization-association-for-api-access-message/743407/3 "2024-05-12T22:05:55Z")

</div>

Ok I removed old key I let one new key but unfortunately this error persist. I have created a new organization maybe I should delete all and recreated all. I thourght this away

---

<div class="post-metadata">

**Author:** ![DavidOS366](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/davidos366/32/432385_2.png) [@DavidOS366](https://community.openai.com/u/DavidOS366)\
**Post date:** [May 12, 2024, 10:07pm UTC](https://community.openai.com/t/assistance-with-organization-association-for-api-access-message/743407/4 "2024-05-12T22:07:09Z")

</div>

How are you calling the APIs? Can you post your code, and whatever language you are using?

---

<div class="post-metadata">

**Author:** ![ericcarlosquesada](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/ericcarlosquesada/32/146848_2.png) [@ericcarlosquesada](https://community.openai.com/u/ericcarlosquesada)\
**Post date:** [May 12, 2024, 10:11pm UTC](https://community.openai.com/t/assistance-with-organization-association-for-api-access-message/743407/5 "2024-05-12T22:11:12Z")

</div>

````auto
I used Node JS, follow curl

curl --location 'http://localhost:3001/api/chat/bug/send-bug' \
--header 'Content-Type: application/json' \
--data '{
  "message": 
  [
    {
      "role": "system",
      "content": "```python def calcular_fatorial(n): if n == 0 or n == 1: return else: return n * calcular_fatorial(n + 1)```"
    }
  ]
}'

````

---

<div class="post-metadata">

**Author:** ![ericcarlosquesada](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/ericcarlosquesada/32/146848_2.png) [@ericcarlosquesada](https://community.openai.com/u/ericcarlosquesada)\
**Post date:** [May 12, 2024, 10:13pm UTC](https://community.openai.com/t/assistance-with-organization-association-for-api-access-message/743407/6 "2024-05-12T22:13:04Z")

</div>

I tried to use headers with all params: organizationID, projetcID but no success

---

<div class="post-metadata">

**Author:** ![DavidOS366](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/davidos366/32/432385_2.png) [@DavidOS366](https://community.openai.com/u/DavidOS366)\
**Post date:** [May 12, 2024, 10:16pm UTC](https://community.openai.com/t/assistance-with-organization-association-for-api-access-message/743407/7 "2024-05-12T22:16:00Z")

</div>

> [@ericcarlosquesada](#):
>
> `http://localhost:3001/api/chat/bug/send-bug`

You created a node.js server on 3001, from there you are sending it to OpenAI?  
If that’s a yes then, below should work . Also your api\_key should be in environment variables. Check `echo $OPENAI_API_KEY` is set to the key or not.

```auto
import OpenAI from "openai";

const openai = new OpenAI();

async function main() {
  const completion = await openai.chat.completions.create({
    messages: [{ role: "system", content: "You are a helpful assistant." }],
    model: "No models available",
  });

  console.log(completion.choices[0]);
}

```

---

<div class="post-metadata">

**Author:** ![ericcarlosquesada](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/ericcarlosquesada/32/146848_2.png) [@ericcarlosquesada](https://community.openai.com/u/ericcarlosquesada)\
**Post date:** [May 12, 2024, 10:33pm UTC](https://community.openai.com/t/assistance-with-organization-association-for-api-access-message/743407/8 "2024-05-12T22:33:31Z")

</div>

I will try a new test, thanks for support…
