# Aura db, http mode, no option of tying client-id to a instance

**URL:** <https://community.neo4j.com/t/aura-db-http-mode-no-option-of-tying-client-id-to-a-instance/75890>\
**Category:** Aura & Cloud\
**Tags:** operations\
**Created:** [November 13, 2025, 7:38am UTC](https://community.neo4j.com/t/aura-db-http-mode-no-option-of-tying-client-id-to-a-instance/75890 "2025-11-13T07:38:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![raga2560](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/raga2560/32/36181_2.png) [@raga2560](https://community.neo4j.com/u/raga2560)\
**Post date:** [November 13, 2025, 7:38am UTC](https://community.neo4j.com/t/aura-db-http-mode-no-option-of-tying-client-id-to-a-instance/75890/1 "2025-11-13T07:38:37Z")

</div>

I have created two instances free and professional.

I have got client secret.

I am able to get Bearer token.

When i try to use i get "error": "Requested endpoint is forbidden"

ChatGPT told,

You are missing **database scope** in the token.

We must confirm:

✔ Your client is tied to a database  
✔ The correct scope appears (like `database/59xx244`)  
✔ You are using the right instance ID

However in Aura console, there is no way of tying client-id to a instance.

---

<div class="post-metadata">

**Author:** ![jon.giffard](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/jon.giffard/32/30835_2.png) [@jon.giffard](https://community.neo4j.com/u/jon.giffard)\
**Post date:** [November 13, 2025, 8:46am UTC](https://community.neo4j.com/t/aura-db-http-mode-no-option-of-tying-client-id-to-a-instance/75890/2 "2025-11-13T08:46:21Z")

</div>

Are you trying to query the database using HTTP or access the Aura API for management of aura ?

If you are trying to query, then you would POST to https:///db//query/v2

An authorization header is needed with each request . That is formed from the username and password for the aura db. A guide to that is here:-

[https://neo4j.com/docs/query-api/current/authentication-authorization/](https://neo4j.com/docs/query-api/current/authentication-authorization/)

The body of the request is where you specify your query. An example is

{

"statement": "MATCH (n) RETURN n LIMIT 1"

}

A fuller guide can be found here:- [https://www.pm50plus.com/2024/09/06/aura-query-api-ga.html](https://www.pm50plus.com/2024/09/06/aura-query-api-ga.html)

---

<div class="post-metadata">

**Author:** ![raga2560](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/raga2560/32/36181_2.png) [@raga2560](https://community.neo4j.com/u/raga2560)\
**Post date:** [November 13, 2025, 9:44am UTC](https://community.neo4j.com/t/aura-db-http-mode-no-option-of-tying-client-id-to-a-instance/75890/3 "2025-11-13T09:44:05Z")

</div>

This format worked

```auto
curl --location 'https://AURA_HOSTNAME/db/neo4j/query/v2' \
 --user neo4j:AURA_DB_PASSWORD \
 --header 'Content-Type: application/json' \
 --header 'Accept: application/json' \
 --data '{ "statement": "RETURN 1" }'

Documentation is not clear about this. I was wasting time with bearer token, etc

Thank you

```

---

<div class="post-metadata">

**Author:** ![raga2560](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/raga2560/32/36181_2.png) [@raga2560](https://community.neo4j.com/u/raga2560)\
**Post date:** [November 14, 2025, 2:29am UTC](https://community.neo4j.com/t/aura-db-http-mode-no-option-of-tying-client-id-to-a-instance/75890/4 "2025-11-14T02:29:28Z")

</div>

> [@raga2560](#):
>
> ```auto
> curl --location 'https://AURA_HOSTNAME/db/neo4j/query/v2' \
> --user neo4j:AURA_DB_PASSWORD \
> --header 'Content-Type: application/json' \
> --header 'Accept: application/json' \
> --data '{ "statement": "RETURN 1" }'
> 
> ```

The solution suggested works. But it is not a standard practice to send userid/password in every http call.

We need to use Bearer token or something like that. We cannot use the solution suggested as it is not the standard practice.
