# Logout

Initiates the SPID logout flow.

Logout is not required for Level 2 authentications.

For the full technical reference, see the [OpenAPI specification](/products/esp/openapi/logout).

#### Endpoint


```
GET /{environment_name}/logout
```

#### Path parameters

| Name | Type | Required | Description |
|  --- | --- | --- | --- |
| `environment_name` | string | Yes | The environment path provided by Namirial during the assessment phase (e.g. `myintegration`) |


#### Query parameters

| Name | Type | Required | Description |
|  --- | --- | --- | --- |
| `final` | string | Yes | Redirect URL called at the end of the logout process (defined during the assessment phase) |


#### Request example


```
GET /myintegration/logout?final=https://your-app.example.com/logout-callback
```

#### Response examples

**Redirect — Logout successful**

The user is presented with the SPID identity provider logout screen, then redirected to the `final` URL.