# How to Log Out a Team Member Using DoubleTick’s Logout API

DoubleTick allows admins to remotely log out a team member from their DoubleTick account using a simple API call. This guide explains how to perform this action using the interactive API documentation at:

[**https://docs.doubletick.io/reference/logout-team-member**](https://docs.doubletick.io/reference/logout-team-member?utm_source=chatgpt.com)

This guide does *not* require any local API setup or Postman — everything is done directly in the browser from the documentation page.

***

### **1. Open the Logout API Page**

Navigate to:

👉 [**https://docs.doubletick.io/reference/logout-team-member**](https://docs.doubletick.io/reference/logout-team-member?utm_source=chatgpt.com)

This page shows the **Logout a Team Member** endpoint along with example requests, response codes, and a built-in “Try It” feature.

***

### **2. Retrieve Your DoubleTick API Key**

<figure><img src="/files/fdIpF03NLoIPBwh8mNTW" alt=""><figcaption></figcaption></figure>

To execute the request, you will need your DoubleTick **Public API Key**.

Follow these steps:

1. Log in to your DoubleTick account
2. Go to **Settings**
3. Look for **Developer Documentation** (inside the Settings menu)
4. Copy the **API Key**

> **Note:** This API key authorizes your request. Do not share this key publicly.

***

### **3. Paste Your API Key in the Documentation Header**

<figure><img src="/files/LpSkHpPXC68aWVPeBKM8" alt=""><figcaption></figcaption></figure>

Return to the API page:

👉 [**https://docs.doubletick.io/reference/logout-team-member**](https://docs.doubletick.io/reference/logout-team-member?utm_source=chatgpt.com)

On the right-hand panel under **Credentials**, you will find a header field.

Paste the copied API key into this field.

Example format (auto-populates in headers):

```
x-public-key: your_api_key_here
```

This ensures that the request is authenticated.

### **4. Enter the Team Member’s Phone Number**

In the request body section, you will see:

```
{
  "userPhoneNumber": "string"
}
```

Replace `"string"` with the **login phone number** of the team member you want to log out.

Example:

```
{
  "userPhoneNumber": "+9193XXXXXXXX"
}
```

> **Important:**
>
> * Always include the **country code** (e.g., +91 for India)

### **5. Use the "Try It" Button to Execute the Request**

On the right-hand panel, you will see the full cURL request auto-generated along with a **green “Try It”** button.

Click **Try It**.

This will send the request in real time and show the response below.

***

### **6. Understanding the Response Codes**

After submitting, review the status code returned:

| Status Code   | Meaning                                              |
| ------------- | ---------------------------------------------------- |
| **200 / 201** | Success — Team member has been logged out            |
| **400**       | Incorrect payload (e.g., invalid JSON or formatting) |
| **401**       | Unauthorized request (wrong or missing API key)      |
| **422**       | The phone number provided is **not** a team member   |

#### **Example Outcomes**

**✔ Success**

Team member is logged out automatically.

**⚠ 400 – Incorrect Payload**

Check formatting or missing fields.

**❌ 401 – Unauthorized**

Verify the API key entered in Credentials.

**🚫 422 – Not a Team Member**

Verify the login number exists in your DoubleTick team.

***

### **7. What Happens After Logout?**

Once executed successfully:

* The selected team member’s active DoubleTick session ends
* They will be required to re-login to continue using DoubleTick

This is especially useful for:

✔ Security/account access management\
✔ Removing old/ex-staff logins\
✔ Managing shared devices\
✔ Temporary lockouts

***

### **Summary**

Using the Logout API, DoubleTick admins can remotely log out any team member directly through the documentation interface — without coding, Postman, or tools.

All you need is:

✔ API Key (from DoubleTick Settings → Developer Documentation)\
✔ Login phone number of the team member (with country code)\
✔ The “Try It” button on the docs page


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://learn.doubletick.io/developer-documentation/how-to-log-out-a-team-member-using-doubleticks-logout-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
