> ## Documentation Index
> Fetch the complete documentation index at: https://api.jobaffinity.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Authentication

> Access the JobAffinity API

## Authentication Method

Each request requires **Basic Auth** authentication ([RFC 7617](https://datatracker.ietf.org/doc/html/rfc7617)).

To obtain your credentials (login and password), contact Intuition-Software support: [support@intuition-software.fr](mailto:support@intuition-software.fr).

## Authentication Examples

<CodeGroup>
  ```bash Shell theme={null}
  curl -X GET https://jobaffinity.fr/restapi/v1 \
       --basic --user login:password
  ```

  ```python Python theme={null}
  import requests

  response = requests.get(
      'https://jobaffinity.fr/restapi/v1',
      auth=('login', 'password')
  )
  ```
</CodeGroup>

## Parameter Transmission

### GET Requests

Parameters are transmitted in the URL.

```bash theme={null}
curl -X GET "https://jobaffinity.fr/restapi/v1/job?alljobs=true" \
     --basic --user login:password
```

### POST Requests

Data is transmitted in the request body as JSON.

```bash theme={null}
curl -X POST \
  --basic --user login:password \
  --json '{"questionnaire_id":"9220","answers":{"46570":{"answer":"response"}}}' \
  https://jobaffinity.fr/restapi/v1/application/75488560/questionnaire
```

<Note>
  Make sure to use HTTPS for all your requests to ensure the security of your credentials.
</Note>

## Rate Limiting

<Note>
  The API is rate-limited to **45 requests per minute per IP address**. If exceeded, you will receive HTTP 429 responses.
</Note>
