> For the complete documentation index, see [llms.txt](https://docs.collibra.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.collibra.com/data-quality-self-hosted/apis/rest/cookie.md).

# Cookie

Use cookies file to run Collibra DQ CURL commands.

```
curl -i -X POST -d username=<username> -d password=<password> http://localhost:9000/login -c cookies.txt
 
curl -i --header "Accept:application/json" -X GET -b cookies.txt "http://localhost:9000/v2/getsecuritymap"
```

Multi-Tenant without subdomain in URL (tenant parameter required):

```
curl -i -X POST -d username=<username> -d password=<password> -d tenant=<tenant> -d tenant=public http://localhost:9000/login -c cookies.txt 
 
curl -i --header "Accept:application/json" -X GET -b cookies.txt "http://localhost:9000/v2/getsecuritymap"
```

## Troubleshooting Postman Authentication

In Postman, if you receive an authentication error (`403 "Forbidden"/"Request Denied"`) while attempting to execute a POST/PUT/DELETE endpoint as a local user, it indicates that either your token is invalid or that your token is valid, but you don’t have permission for the operation. If your user account does have the appropriate permissions and you still receive this error, perform the following steps:

{% stepper %}
{% step %}
In Postman, remove the cookies from the active session.
{% endstep %}

{% step %}
In Postman, open the **signin** API setting and turn on "Disable cookie jar".
{% endstep %}

{% step %}
In subsequent calls using Postman, reuse the access token, such as a session variable. Alternatively, add a pre-req script to the **signin** API to clear cookies.
{% endstep %}
{% endstepper %}
