---
title: "POST /users/me/awx-tokens/"
method: POST
path: "/users/me/awx-tokens/"
tags: ["users"]
---

# POST /users/me/awx-tokens/

`POST /users/me/awx-tokens/`

## Request

- Base URL: `/api/eda/v1` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/eda/v1/users/me/awx-tokens/`
- Auth: one of:
  - API key in cookie `sessionid`
  - HTTP basic
  - HTTP bearer
  - API key in header `X-DAB-JW-TOKEN`

Create a AWX token for a current user.

## Request body

- AwxTokenCreate
  - `name` string, required
  - `description` string
  - `token` string, required

## Response `201`

Return the created AWX token.

- AwxToken
  - `id` integer, required
  - `name` string, required
  - `description` string
  - `user_id` integer, required
  - `created_at` string, date-time, required
  - `modified_at` string, date-time, required

## Changes

- **2024-04-23** `cbf68ddd9760`: 2 info
  - the endpoint scheme security `EDAJWTAuthentication` was added to the API
  - the endpoint scheme security `jwtAuth` was added to the API
- **2023-08-21** `c84b4813cab1`: 1 info
  - the endpoint scheme security `cookieAuth` was added to the API
- **2023-05-19** `f84d9240fdf2`: 5 info
  - the endpoint scheme security `cookieAuth` was removed from the API
  - the request required property `token` became not write-only (media type: application/json)
  - the request required property `token` became not write-only (media type: application/x-www-form-urlencoded)
  - the request required property `token` became not write-only (media type: multipart/form-data)
  - …1 more
- **2023-04-25** `62d33b790834`: 6 info
  - the endpoint scheme security `EDAJWTAuthentication` was removed from the API
  - the endpoint scheme security `jwtAuth` was removed from the API
  - the request required property `token` became write-only (media type: application/json)
  - the request required property `token` became write-only (media type: application/x-www-form-urlencoded)
  - …2 more

[Operation history](https://skmtc.dev/ansible/apis/event-driven-ansible-api/changes/users/me/awx-tokens/post.md)

---

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