> For the complete documentation index, see [llms.txt](https://docs.facephi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.facephi.com/docs.facephi-pt-br/sdks/backend-sdk/selphid/technical_documentation/api_reference/management/api-v1-selphid-config-1.md).

# /api/v1/selphid/config

This endpoint does not modify the configuration of selphId-sdk or of the service: currently none of the parameters returned by `GET /api/v1/selphid/config` can be updated at runtime, and the request responds 200 even though it applies no change.

| Parameter                                        | Access    |
| ------------------------------------------------ | --------- |
| `FACEPHI_SELPHID_DEBUGPATH_KEY`                  | Read-only |
| `FACEPHI_SELPHID_FACIALAUTHENTICATION_THRESHOLD` | Read-only |
| `FACEPHI_SELPHID_FACIALEXTRACTOR_NUM_THREADS`    | Read-only |
| `FACEPHI_SELPHID_FACIALLIVENESS_DEPTH`           | Read-only |
| `FACEPHI_SELPHID_FACIALLIVENESS_IAD`             | Read-only |
| `FACEPHI_SELPHID_FACIALLIVENESS_NUM_THREADS`     | Read-only |
| `FACEPHI_SELPHID_FACIALLIVENESS_PATH_KEY`        | Read-only |
| `FACEPHI_SELPHID_FACIALLIVENESS_THRESHOLD`       | Read-only |
| `FACEPHI_SELPHID_FACIAL_LICPATH_KEY`             | Read-only |
| `FACEPHI_SELPHID_FUTURE_TIME_ALLOWED`            | Read-only |
| `FACEPHI_SELPHID_GALLERY_REMOVE_METHOD`          | Read-only |
| `FACEPHI_SELPHID_USAGEPATH_KEY`                  | Read-only |
| `port`                                           | Read-only |
| `number_of_threads`                              | Read-only |
| `connection_timeout`                             | Read-only |
| `keep_alive_request_number`                      | Read-only |
| `client_max_body_size`                           | Read-only |
| `logger_path`                                    | Read-only |
| `logger_level`                                   | Read-only |
| `logger_rotation`                                | Read-only |
| `logger_max_files`                               | Read-only |

* The `FACEPHI_SELPHID_*` parameters are configured at startup through environment variables, and the service parameters through `config.json` or the `FACEPHI_SELPHID_REST_*` environment variables. Changing them requires restarting the service.
* Some `FACEPHI_SELPHID_*` parameters only appear in the `GET` response if they were defined at startup.
* The JWT authentication settings (`auth_*`) are startup-only: `GET` does not return them and this endpoint rejects with 400 any requests that include them.

```json
{"openapi":"3.0.0","info":{"title":"SelphID-SDK Rest API","version":"6.21.0"},"security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"},"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key","description":"Default API key header name. It can be overridden at startup with `auth_api_key_header_name`."}},"schemas":{"ConfigParams":{"type":"object","description":"The configuration parameters of the SDK and the service. The JWT authentication configuration is intentionally omitted.","properties":{"FACEPHI_SELPHID_DEBUGPATH_KEY":{"type":"string","description":"Path and file where the SelphID logs are written."},"FACEPHI_SELPHID_FACIALAUTHENTICATION_THRESHOLD":{"type":"string","description":"Threshold for facial authentication."},"FACEPHI_SELPHID_FACIALEXTRACTOR_NUM_THREADS":{"type":"string","description":"Number of cores assigned to extraction/authentication operations."},"FACEPHI_SELPHID_FACIALLIVENESS_DEPTH":{"type":"string","description":"Liveness engine pipeline mode."},"FACEPHI_SELPHID_FACIALLIVENESS_IAD":{"type":"string","description":"Status of the liveness injection attack detection (IAD) filters."},"FACEPHI_SELPHID_FACIALLIVENESS_PATH_KEY":{"type":"string","description":"Path where the models and other pipeline data are installed."},"FACEPHI_SELPHID_FACIALLIVENESS_THRESHOLD":{"type":"string","description":"Threshold for liveness operations."},"FACEPHI_SELPHID_FACIAL_LICPATH_KEY":{"type":"string","description":"License path."},"FACEPHI_SELPHID_FUTURE_TIME_ALLOWED":{"type":"string","description":"Global value to accept templateRaws with future dates."},"FACEPHI_SELPHID_GALLERY_REMOVE_METHOD":{"type":"string","description":"Removal method for 1:N galleries."},"FACEPHI_SELPHID_USAGEPATH_KEY":{"type":"string","description":"Path of the usage database."},"client_max_body_size":{"type":"integer","description":"Maximum size of the request data (Mb)."},"connection_timeout":{"type":"integer","description":"Maximum timeout for connections (0=infinite)."},"keep_alive_request_number":{"type":"integer","description":"How a connection can be used in terms of timeout and maximum number of requests."},"logger_level":{"type":"string","description":"Logging level (logger)."},"logger_max_files":{"type":"integer","description":"Maximum number of files used in log rotation."},"logger_path":{"type":"string","description":"Path where the service logs are stored."},"logger_rotation":{"type":"string","description":"Log rotation strategy (logger)."},"number_of_threads":{"type":"integer","description":"Number of cores assigned to concurrent requests."},"port":{"type":"integer","description":"Service listening port."}}},"BadRequestResult":{"type":"object","description":"Result when incorrect parameters arrive in the request.","properties":{"status":{"type":"number"},"error":{"type":"string"},"timeStamp":{"$ref":"#/components/schemas/TimeStamp"}}},"TimeStamp":{"type":"string","description":"A date and time value in \"%Y-%m-%dT%H:%M:%SZ\" format."},"ExceptionResult":{"type":"object","description":"An error occurred in the call to the SelphID-SDK backend.","properties":{"status":{"type":"number"},"error":{"type":"string"},"exception":{"type":"string"},"timeStamp":{"$ref":"#/components/schemas/TimeStamp"}}}}},"paths":{"/api/v1/selphid/config":{"post":{"description":"This endpoint does not modify the configuration of selphId-sdk or of the service: currently none of the parameters returned by `GET /api/v1/selphid/config` can be updated at runtime, and the request responds 200 even though it applies no change.\n\n| Parameter | Access |\n|---|---|\n| `FACEPHI_SELPHID_DEBUGPATH_KEY` | Read-only |\n| `FACEPHI_SELPHID_FACIALAUTHENTICATION_THRESHOLD` | Read-only |\n| `FACEPHI_SELPHID_FACIALEXTRACTOR_NUM_THREADS` | Read-only |\n| `FACEPHI_SELPHID_FACIALLIVENESS_DEPTH` | Read-only |\n| `FACEPHI_SELPHID_FACIALLIVENESS_IAD` | Read-only |\n| `FACEPHI_SELPHID_FACIALLIVENESS_NUM_THREADS` | Read-only |\n| `FACEPHI_SELPHID_FACIALLIVENESS_PATH_KEY` | Read-only |\n| `FACEPHI_SELPHID_FACIALLIVENESS_THRESHOLD` | Read-only |\n| `FACEPHI_SELPHID_FACIAL_LICPATH_KEY` | Read-only |\n| `FACEPHI_SELPHID_FUTURE_TIME_ALLOWED` | Read-only |\n| `FACEPHI_SELPHID_GALLERY_REMOVE_METHOD` | Read-only |\n| `FACEPHI_SELPHID_USAGEPATH_KEY` | Read-only |\n| `port` | Read-only |\n| `number_of_threads` | Read-only |\n| `connection_timeout` | Read-only |\n| `keep_alive_request_number` | Read-only |\n| `client_max_body_size` | Read-only |\n| `logger_path` | Read-only |\n| `logger_level` | Read-only |\n| `logger_rotation` | Read-only |\n| `logger_max_files` | Read-only |\n\n- The `FACEPHI_SELPHID_*` parameters are configured at startup through environment variables, and the service parameters through `config.json` or the `FACEPHI_SELPHID_REST_*` environment variables. Changing them requires restarting the service.\n- Some `FACEPHI_SELPHID_*` parameters only appear in the `GET` response if they were defined at startup.\n- The JWT authentication settings (`auth_*`) are startup-only: `GET` does not return them and this endpoint rejects with 400 any requests that include them.\n","tags":["Management"],"requestBody":{"description":"An object with configuration parameters. The service currently applies none of them.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigParams"}}}},"responses":{"200":{"description":"A message with the description.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}},"400":{"description":"Incorrect parameters in the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResult"}}}},"500":{"description":"An error occurred in the call to the SelphID-SDK backend.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExceptionResult"}}}}}}}}}
```
