Skip to content
View as Markdown

POST Create REST API Key​

POST
/setting/rest-keys

Create a new WordPress application password for REST API access. The target user must have FluentCRM access, and the requesting user must have the manage_options capability. The generated password is returned only once in the response.

Authorizations​

ApplicationPasswords

WordPress Application Passwords — use Basic auth with your WordPress username and an application password in the format: username:application_password

Type
API Key (header: Authorization)

Request Body​

application/json
JSON
{
"api_name": "string",
"api_user_id": 0
}

Responses​

API key created successfully. The password is returned only once.

application/json
JSON
{
"item": {
"uuid": "string",
"name": "string",
"created": 0,
"info": {
"api_password": "string",
"api_username": "string"
}
},
"message": "string"
}

Playground​

Authorization
Body

Samples​

Powered by VitePress OpenAPI