---
title: "Get Access Token"
method: POST
path: "/v1/auth"
tags: ["auth"]
---

# Get Access Token

`POST /v1/auth`

## Request

- Base URL: `https://api.shapemaker.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.shapemaker.io/v1/auth`
- Auth: none declared

This endpoint is used to authenticate a user.
It accepts a `username` and `password` as form fields, and uses these to authenticate the user.
If the authentication is successful, it returns a JSON object with the user's information and access token.

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

- BodyGetAccessTokenV1AuthPost
  - `username` string, required
  - `password` string, password, required
  - `grant_type` string, nullable
  - `scope` string
  - `client_id` string, nullable
  - `client_secret` string, password, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

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