Token

User Token Create

Handles both: - Users authenticating with basic credentials to get a token - Two-factor authentication flow

Request

posthttps://api.cloudsmith.io/v1/user/token
Body params optional

Response body

object

object

email
email
optional
length ≥ 1
password
string
optional
length ≥ 1
totp_token
string
optional
length ≥ 1

Response

Responses

Retrieved/created user API token/key.

object

object

token
string
optional
length ≥ 1
two_factor_required
boolean
optional
two_factor_token
string
optional
length ≥ 1

Request could not be processed (see detail).

object

object

detail
string
required
length ≥ 1
fields
object
optional

Locked out.

object

object

detail
string
required
length ≥ 1
fields
object
optional

Failed to authenticate.

object

object

detail
string
required
length ≥ 1
fields
object
optional