# 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="https://2303112206-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F53n17VnOICC1LtDqlENV%2Fuploads%2FmCDv3c4UcpnK1ErjgWu1%2FUntitled%20design%20(31).gif?alt=media&#x26;token=84761cc6-3375-4817-a1b9-ff51446a2f46" 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="https://2303112206-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F53n17VnOICC1LtDqlENV%2Fuploads%2FApJrR5OHNYXC5CKnfUgZ%2FUntitled%20design%20(32).gif?alt=media&#x26;token=ea96f0d3-aae0-40fb-9db9-3c6d88ba2941" 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
