---
title: "API View that receives a POST with a user's username and password."
method: POST
path: "/api-token/"
tags: ["api-token"]
---

# API View that receives a POST with a user's username and password.

`POST /api-token/`

## Request

- Base URL: `http://api.footballchallengeapp.com`
- URL: `http://api.footballchallengeapp.com/api-token/`
- Auth: HTTP basic

Returns a JSON Web Token that can be used for authenticated requests.

## Request body

- JSONWebToken
  - `email` string, required
  - `password` string, required

## Response `201`

Created

- JSONWebToken
  - `email` string, required
  - `password` string, required

---

[API](https://skmtc.dev/footballchallengeapp/apis/fcapp-ver-2-api.md) - [All operations](https://skmtc.dev/footballchallengeapp/apis/fcapp-ver-2-api/llms.txt) - [OpenAPI document](https://skmtc.dev/footballchallengeapp/apis/fcapp-ver-2-api/revisions/80c7593b6107?raw)
