curl --request POST \
    --url https://api.buster.so/api/v1/tokens \
    --header 'Content-Type: application/json' \
    --header 'api-key: <YOUR-API-KEY>' \
    --data '{
        "external_id": "buster_bluth"
    }'
{
	"jwt": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlYjY5Zjg5YS0wNTkwLTQ2YzAtOTVjZS00MDM5YzM0N2M5M2EiLCJhdWQiOiJhdXRoZW50aWNhdGVkIiwiY3N0IjoiYnVzdGVyX2JsdXRoIiwiZXhwIjoxNzAyNDE1ODkwfQ.QXuD_vE05X6Mex60ligIm3vcpbpyNhMfG5AxDj_OOog"
}

The external_id field is the identifier that you assigned to your user at creation.

Body parameters

id | external_id
string
required

We recommend using the external_id that you assigned to the user on creation. However, you may also use the id that was returned to you on creation.

    curl --request POST \
    --url https://api.buster.so/api/v1/tokens \
    --header 'Content-Type: application/json' \
    --header 'api-key: <YOUR-API-KEY>' \
    --data '{
        "external_id": "buster_bluth"
    }'
{
	"jwt": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlYjY5Zjg5YS0wNTkwLTQ2YzAtOTVjZS00MDM5YzM0N2M5M2EiLCJhdWQiOiJhdXRoZW50aWNhdGVkIiwiY3N0IjoiYnVzdGVyX2JsdXRoIiwiZXhwIjoxNzAyNDE1ODkwfQ.QXuD_vE05X6Mex60ligIm3vcpbpyNhMfG5AxDj_OOog"
}