website logo
Channel Docs
Merchant Docs
Navigate through spaces
Channel Docs
Merchant Docs
⌘K
Guides
🚀Quick Start
🏃‍♂️Utilizing Quick Checkout
👋Welcome to Violet's Docs
💡Concepts
🌐API Reference
✋Help
Docs powered by archbee 
3min

Obtaining an API Token

The first call to Violet that needs to be made is the /login call, to authenticate your Violet Account and credentials and retrieve an authentication token. This token stays valid for 24 hours before a new one needs to be generated.

POST /login

Log in to your Violet Application and retrieve an authentication token



Request

Body

username - Username for your Violet account created on channel.violet.io

password - Password for your Violet account you created on channel.violet.io

Curl
|


Response

This method returns a token along with other information about your Violet Account. This token is a JWT token that is used to authenticate all your requests to the Violet APIs.

JSON
|




Updated 03 Mar 2023
Did this page help you?
Yes
No
UP NEXT
Refreshing an API Token
Docs powered by archbee 
TABLE OF CONTENTS
POST /login