---
title: "Revert to previous username"
description: "Revert to the most recently released username within the 14-day\ngrace period."
---

> Documentation Index
> Fetch the complete documentation index at: https://truememory-docs.mvstg.com/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Auth API › Auth

`POST /auth/username/revert`

Revert to the most recently released username within the 14-day
grace period.

## Authentication

- `HTTPBearer`, http, header `Authorization`

## Code samples

### cURL

```bash
curl --request POST \
  --url https://truememory-auth.mvstg.com/auth/username/revert \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://truememory-auth.mvstg.com/auth/username/revert';
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://truememory-auth.mvstg.com/auth/username/revert"

headers = {"Authorization": "Bearer <token>"}

response = requests.post(url, headers=headers)

print(response.text)
```

## Responses

### 200

Successful Response

#### Example

```json
{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
  "gip_uid": "string",
  "email": "string",
  "email_verified": false,
  "username": "string",
  "display_name": "string",
  "photo_url": "string",
  "phone_number": "string",
  "disabled": false,
  "role": "user",
  "metadata": {},
  "raw_app_meta_data": {},
  "custom_claims": {},
  "last_sign_in_at": "2019-08-24T14:15:22Z",
  "created_at": "2019-08-24T14:15:22Z",
  "updated_at": "2019-08-24T14:15:22Z",
  "deleted_at": "2019-08-24T14:15:22Z",
  "deletion_completed_at": "2019-08-24T14:15:22Z"
}
```

- `id` (`revert_username_auth_username_revert_post.response.200.id`; string, required)
  - format `uuid`
- `gip_uid` (`revert_username_auth_username_revert_post.response.200.gip_uid`; string, required)
- `tenant_id` (`revert_username_auth_username_revert_post.response.200.tenant_id`; any of, optional)
  - any of: `string`, `null`
- `email` (`revert_username_auth_username_revert_post.response.200.email`; any of, optional)
  - any of: `string`, `null`
- `email_verified` (`revert_username_auth_username_revert_post.response.200.email_verified`; boolean, optional)
  - default `false`
- `username` (`revert_username_auth_username_revert_post.response.200.username`; any of, optional)
  - any of: `string`, `null`
- `display_name` (`revert_username_auth_username_revert_post.response.200.display_name`; any of, optional)
  - any of: `string`, `null`
- `photo_url` (`revert_username_auth_username_revert_post.response.200.photo_url`; any of, optional)
  - any of: `string`, `null`
- `phone_number` (`revert_username_auth_username_revert_post.response.200.phone_number`; any of, optional)
  - any of: `string`, `null`
- `disabled` (`revert_username_auth_username_revert_post.response.200.disabled`; boolean, optional)
  - default `false`
- `role` (`revert_username_auth_username_revert_post.response.200.role`; string, optional)
  - default `"user"`
- `metadata` (`revert_username_auth_username_revert_post.response.200.metadata`; object, optional)
- `raw_app_meta_data` (`revert_username_auth_username_revert_post.response.200.raw_app_meta_data`; object, optional)
- `custom_claims` (`revert_username_auth_username_revert_post.response.200.custom_claims`; object, optional)
- `last_sign_in_at` (`revert_username_auth_username_revert_post.response.200.last_sign_in_at`; any of, optional)
  - any of: `string`, `null`
- `created_at` (`revert_username_auth_username_revert_post.response.200.created_at`; any of, optional)
  - any of: `string`, `null`
- `updated_at` (`revert_username_auth_username_revert_post.response.200.updated_at`; any of, optional)
  - any of: `string`, `null`
- `deleted_at` (`revert_username_auth_username_revert_post.response.200.deleted_at`; any of, optional)
  - any of: `string`, `null`
- `deletion_completed_at` (`revert_username_auth_username_revert_post.response.200.deletion_completed_at`; any of, optional)
  - any of: `string`, `null`


Source: https://truememory-docs.mvstg.com/auth/username/revert/index.md
