# Atlassian Cloud REST API: 401 Basic authentication with passwords is deprecated

**Code:** `Basic authentication with passwords is deprecated` · **Category:** API · **Seen on:** Atlassian

Jira/Confluence Cloud no longer accepts account passwords for the API.

## Meaning

Use the account email with an API token as the Basic auth password, or OAuth 2.0 (3LO) for apps.

## Common causes

- Using the account password
- Using an expired or revoked API token
- Wrong email used with the token
- Calling Server/Data Center docs against Cloud

## Quick fix

1. Create an API token at id.atlassian.com and use `email:token`
2. Use OAuth 2.0 for multi-user apps
3. Check you are using the Cloud base URL

## Detailed fix by platform

### cURL

1. `curl -u you@example.com:$API_TOKEN https://yourcompany.atlassian.net/rest/api/3/myself`

## How to diagnose

1. **Credentials** — Email:token?
2. **Token** — Valid?
3. **Product** — Cloud or Server?

---
Source: [WhatIsMyError](https://whatismyerror.com/errors/api/jira-basic-auth-password-not-supported)
