cURL
curl --request POST \ --url https://api.xplenty.com/{account_id}/api/user/keys \ --header 'Accept: <accept>' \ --header 'Authorization: Basic <encoded-value>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "public_key": "<string>" } '
{ "id": 123, "name": "<string>", "fingerprint": "<string>", "comment": "<string>", "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z", "url": "<string>" }
Enter your API key as the username. Leave the password field blank. Example: curl -u YOUR_API_KEY: https://api.xplenty.com/...
curl -u YOUR_API_KEY: https://api.xplenty.com/...
API version header — required on all requests
Public key created
Was this page helpful?