---
title: "POST /auth-method-create-universal-identity"
method: POST
path: "/auth-method-create-universal-identity"
tags: ["Authentication"]
---

# POST /auth-method-create-universal-identity

`POST /auth-method-create-universal-identity`

## Request

- Base URL: `https://api.akeyless.io`
- URL: `https://api.akeyless.io/auth-method-create-universal-identity`
- Auth: none declared

## Request body

- AuthMethodCreateUniversalIdentity: authMethodCreateUniversalIdentity is a command that creates a new auth method that will be able to authenticate using Akeyless Universal Identity.
  - `access-expires` integer: Access expiration date in Unix timestamp (select 0 for access without expiry date)
  - `allowed-client-type` string[]: limit the auth method usage for specific client types [cli,ui,gateway-admin,sdk,mobile,extension]
  - `audit-logs-claims` string[]: Subclaims to include in audit logs, e.g "--audit-logs-claims email --audit-logs-claims username"
  - `bound-ips` string[]: A CIDR whitelist with the IPs that the access is restricted to
  - `child-ttl-limit` integer: Maximum child token ttl allowed in uid-create-child-token
  - `delete_protection` string: Protection from accidental deletion of this object [true/false]
  - `deny-inheritance` boolean: Deny from root to create children
  - `deny-rotate` boolean: Deny from the token to rotate
  - `description` string: Auth Method description
  - `expiration-event-in` string[]: How many days before the expiration of the auth method would you like to be notified.
  - `force-sub-claims` boolean: if true: enforce role-association must include sub claims
  - `gw-bound-ips` string[]: A CIDR whitelist with the GW IPs that the access is restricted to
  - `json` boolean: Set output format to JSON
  - `jwt-ttl` integer: Jwt TTL
  - `name` string, required: Auth Method name
  - `product-type` string[]: Choose the relevant product type for the auth method [sm, sra, pm, dp, ca, ara]
  - `token` string: Authentication token (see `/auth` and `/configure`)
  - `tree-length` integer: Maximum UID tree depth allowed (child of child of ...)
  - `ttl` integer: Token ttl
  - `uid-expiration-event-at` string[]: Notify when this percent of the token TTL has elapsed (1-99).
  - `uid-token` string: The universal identity token, Required only for universal_identity authentication

## Response `201`

- AuthMethodCreateOutput
  - `access_id` string
  - `access_key` string
  - `name` string
  - `prv_key` string
  - `scim_base_url` string: SCIM Base URL the IdP calls, set when SCIM flags were given

## Other responses

- `default`: errorResponse wraps any error to return it as a JSON object with one "error" field.

---

[API](https://skmtc.dev/akeyless/apis/identity-access.md) - [All operations](https://skmtc.dev/akeyless/apis/identity-access/llms.txt) - [OpenAPI document](https://skmtc.dev/akeyless/apis/identity-access/revisions/6fbc3858ec88?raw)
