# Send a client their questions

Creates the client's questions and their link. Leave out libraryQuestionIds for the set that suits the client's role family; an empty list asks the basic questions only. A client has one set of questions. Requires authentication.

```http
POST https://hiresweep.com/api/openapi/client-intake
x-api-key: YOUR_API_KEY
```

## Request body

```json
{
  "type": "object",
  "properties": {
    "clientId": {
      "anyOf": [
        {
          "type": "string",
          "minLength": 1
        },
        {
          "type": "null"
        }
      ],
      "description": "The client whose data this is, for an operator applying on behalf of clients. Omit for your own."
    },
    "libraryQuestionIds": {
      "type": "array",
      "maxItems": 60,
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 64
      },
      "description": "The library questions to ask, by id. Leave out for the set that suits the client's role family; send an empty list for the basic questions only."
    },
    "customQuestions": {
      "type": "array",
      "maxItems": 60,
      "items": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string",
            "minLength": 1,
            "maxLength": 500
          },
          "kind": {
            "enum": [
              "text",
              "long_text"
            ],
            "type": "string"
          }
        },
        "required": [
          "text",
          "kind"
        ]
      },
      "description": "Questions of the writer's own, asked after the others."
    }
  }
}
```

## Responses

- `200`: The questions and the link to send.
