# Create an API resource **POST /api/resources** Create an API resource in the current tenant. ## Servers - Logto endpoint address.: https://[tenant_id].logto.app (Logto endpoint address.) ## Authentication methods - O auth2 ## Parameters ### Body: application/json (object) - **tenantId** (string) - **name** (string) The name of the resource. - **indicator** (string) The unique resource indicator. Should be a valid URI. - **accessTokenTtl** (number) The access token TTL in seconds. It affects the `exp` claim of the access token granted for this resource. ## Responses ### 201 The created resource. #### Body: application/json (object) - **tenantId** (string) - **id** (string) - **name** (string) - **indicator** (string) - **isDefault** (boolean) - **accessTokenTtl** (number) - **scopes** (array[object]) ### 400 Bad Request ### 401 Unauthorized ### 403 Forbidden ### 422 Unprocessable Content [Powered by Bump.sh](https://bump.sh)