---
title: "Comment by Nicolas Pilot on \"Generative AI Comes to APEX\" | Hashnode"
description: "Thanks John for sharing. One thing that catches my attention: I see that you are using \"make_rest_request\" using a \"credential_id\" but you don't specify the \"p_"
url: "https://hashnode.com/posts/generative-ai-comes-to-apex/667d5a31edec8f9f7e11a639/comment/6791e62969f0c1d30bc5ffd1"
---

[Discussion](https://hashnode.com/posts/generative-ai-comes-to-apex/667d5a31edec8f9f7e11a639)

Comment [Generative AI Comes to APEX](https://hashnode.com/posts/generative-ai-comes-to-apex/667d5a31edec8f9f7e11a639)

[Nicolas Pilot](https://hashnode.com/@NPilot)

[Jan 23, 2025](https://hashnode.com/posts/generative-ai-comes-to-apex/667d5a31edec8f9f7e11a639/comment/6791e62969f0c1d30bc5ffd1)

Thanks John for sharing. One thing that catches my attention: I see that you are using "make\_rest\_request" using a "credential\_id" but you don't specify the "p\_token\_url". How is this possible?

[Jon Dixon](https://hashnode.com/@orclapex)

[Jan 23, 2025](https://hashnode.com/posts/generative-ai-comes-to-apex/667d5a31edec8f9f7e11a639/comment/6791e62969f0c1d30bc5ffd1#reply-6792536ad971bc4f0449c5ca)

Hi Nicolas. It is because the Web Credential Type is HTTP Header and the token is in the Web Credential. OpenAI uses a token passed in the header of the request to authenticate it's web services.

[Nicolas Pilot](https://hashnode.com/@NPilot)

[Jan 23, 2025](https://hashnode.com/posts/generative-ai-comes-to-apex/667d5a31edec8f9f7e11a639/comment/6791e62969f0c1d30bc5ffd1#reply-679254b6c4d5432793220a95)

Ha ok. Thanks Jon.
