---
title: "Logs in a user and returns an OAuth token"
method: POST
path: "/v1/auth-tokens"
tags: ["v1"]
---

# Logs in a user and returns an OAuth token

`POST /v1/auth-tokens`

## Request

- Base URL: `https://api.teespring.com`
- URL: `https://api.teespring.com/v1/auth-tokens`
- Auth: none declared

Make the below request using your Teespring email and password, along with the `app_id` provided to you by Teespring. Copy the access token from the response and include it as the access_token url parameter for all subsequent requests. The token will expire after 24 hours and require a new request. Never share your access token with anyone. It will allow them to access your Teespring data until it expires.

## Request body `application/x-www-form-urlencoded`

- object
  - `app_id` string, required: app ID (provided by Teespring)
  - `email` string: Teespring e-mail address
  - `password` string: Teespring password

## Response `201`

Logs in a user and returns an OAuth token

---

[API](https://skmtc.dev/teespring/apis/teespring-api.md) - [All operations](https://skmtc.dev/teespring/apis/teespring-api/llms.txt) - [OpenAPI document](https://skmtc.dev/teespring/apis/teespring-api/revisions/1370201fa34c?raw)
