# Authentication

Authentication relies on OAuth 2.0 client credentials; once a token is obtained, it must be included in the Authorization header as a bearer token for each request.&#x20;

## Getting the token

{% hint style="info" %}
The integrations team will provide you with the sandbox credentials;
{% endhint %}

{% hint style="info" %}
The value for grant\_type should be "client\_credentials".
{% endhint %}

{% openapi src="/files/YahZGQnrWvy8s9zYIqJW" path="/api/Connect/Token" method="post" %}
[RemiteeSwagger.yaml](https://94797708-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuxJDnI5I9Wh6PMf08w8t%2Fuploads%2FLRm28ipEpl1FPm7GLHbC%2FRemiteeSwagger.yaml?alt=media\&token=9cc54d6e-7f4e-4319-b6f3-b75cd04fe56e)
{% endopenapi %}

### After get a Token

The token must be included in the Authorization header for each request. It has an expiration time of one hour, after which you will need to obtain a new one.

For instance, a quote request should look like this:

```http
curl --location 'https://remitee-moneytransfer-preprod.azurewebsites.net/api/QuoteCollections' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IjZCN0FDQzUyMDMwNUJGREI0RjcyNTJEQUVCMjE3N0NDMDkxRkFBRTEiLCJ0eXAiOiJKV1QiLCJ4NXQiOiJhM3JNVWdNRnY5dFBjbExhNnlGM3pBa2ZxdUUifQ.eyJuYmYiOjE1NzUzOTE4NjEsImV4cCI6MTU3NTM5NTQ2MSwiaXNzIjoiaHR0cHM6Ly9yZW1pdGVlLWlkZW50aXR5LXRlc3QuYXp1cmV3ZWJzaXRlcy5uZXQiLCJhdWQiOlsiaHR0cHM6Ly9yZW1pdGVlLWlkZW50aXR5LXRlc3QuYXp1cmV3ZWJzaXRlcy5uZXQvcmVzb3VyY2VzIiwibW9uZXl0cmFuc2ZlciJdLCJjbGllbnRfaWQiOiJ0dXJjYW1iaW8tbW9uZXl0cmFuc2Zlci1pbmJvdW5kIiwiY2xpZW50X21vbmV5dHJhbmZlcl9hY2NvdW50IjoiYWE3MmNmNjAtNDNmYi00N2EwLWFmM2UtNGNjZTUxNTAxZGI0Iiwic2NvcGUiOlsibW9uZXl0cmFuc2ZlciJdfQ.CANHGLJOMxZzsdvqKlnLVG29qslRXNcwEbtt8t_sFnT6VDL8sWzXkqr09D_pO6vJx781Z47ZFMJ34MaoE6wwxRo4XPbluDYeIKCaMD_KbfhswxV6koormLLjeLyFpBv91nDP4VoSU1L0pgAv3bBFfkkb_unO1aTqp6YRbndtlAiSmR5KsmPv-au341l8Hv2-sbIKoGC_f3caNFIa3_5s_z2rw16u2_y_1tlx6FXxvMBI33dx6iqw8LFvXLunwAHh7AX0_GW_EmLI7DJl0ljiCF9AFHIb1Obqa2CdN1DcWnP_RnPF8TfShSkWbtkTYVqShnarpTrgdrYJcHw93O2uFw' \
--data '{
"paymentType": "C2C",
"sourceCurrency": "USD",
"targetCountry": "ARG",
"targetCurrency": "ARS",
"collectMethod": "BANK_ACCOUNT",
"quoteType": "RECEIVING_AMOUNT",
"quoteAmount": 1000
}'
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://remitee.gitbook.io/remitee/quick-start/authentication.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
