Unicat API Reference

Up - API Reference - Home


/api/p/<project gid>/apikeys/get

Requires JWT.

Get the API key for an API user.

With this key you can programmatically perform any action a logged in user can. Don't give out these keys lightly!

To use the API, you need both the project gid and the API key.

If you give the API key to someone else, please do so securely.

Request

POST /api/p/<project gid>/apikeys/get
Authorization: Bearer <JWT>

{
    "user": "b76f701d-3d34-4f39-8eeb-fafe294ab01e",
}

user an API user's gid for this project.

Success response

Authorization: <JWT>

{
    "success": true,
    "result": {
        "apikey": "b76f701d-3d34-4f39-8eeb-fafe294ab01e",
    },
    "data": {}
}

result

apikey is the API key for the API user.

Error responses

401 Unauthorized - missing or expired JWT
403 Forbidden - not the owner of this project
422 Unprocessable entity - not an API user