---
title: "Create Logout Detector"
method: POST
path: "/targets/{target_id}/logout/"
tags: ["Targets"]
---

# Create Logout Detector

`POST /targets/{target_id}/logout/`

## Path parameters

- `target_id` string, required

## Request body

- LogoutDetector
  - `id` string, required — A unique Base58 value identifying this object.
  - `type` 'text' | 'url' | 'sel' | 'status_code' | 'body_contains' | 'header' — Type of element for the logout detection: * `text` - A string of text that exists after a logout. * `url` - A redirect to a URL that occurs after a logout. * `sel` - A CSS selector that exists after a logout. * `status_code` - An HTTP status code returned after a logout. * `body_contains` - A string of text that exists in the body after a logout. * `header` - A specific header returned after a logout.
  - `value` string, required — The value of the element for the logout detection. The maximum length is 2048 characters.

## Response `200`

- LogoutDetector
  - `id` string, required — A unique Base58 value identifying this object.
  - `type` 'text' | 'url' | 'sel' | 'status_code' | 'body_contains' | 'header' — Type of element for the logout detection: * `text` - A string of text that exists after a logout. * `url` - A redirect to a URL that occurs after a logout. * `sel` - A CSS selector that exists after a logout. * `status_code` - An HTTP status code returned after a logout. * `body_contains` - A string of text that exists in the body after a logout. * `header` - A specific header returned after a logout.
  - `value` string, required — The value of the element for the logout detection. The maximum length is 2048 characters.

## Other responses

- `400`
- `401`
- `404`
- `500`

---

[API](https://skmtc.net/probely/apis/snyk-api-web-s-api-reference-documentation.md) · [All operations](https://skmtc.net/probely/apis/snyk-api-web-s-api-reference-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/probely/snyk-api-web-s-api-reference-documentation/versions/e29879bff01b/schema)
