Workflow

 

Admin:

Each user will have an api key/s.

Hooks: https://tyk.io/docs/basic-config-and-security/security/key-hashing/

key list: 

Api key manager:

Get by key number: 

localhost:8080/tyk/keys/10a4a4dba47a749ebb94458182065e365

Create new key:

localhost:8080/tyk/keys/create

Body:

{
    "name": "httpbin.org - Bearer Token Auth",
    "api_id": "2",
    "org_id": "1",
    "version_data": {
        "not_versioned": true,
        "versions": {
            "Default": {
                "name": "Default",
                "use_extended_paths": true
            }
        }
    },
    "meta_data": {
        "user": "test"
    },
    "active": true
}

Get all key

localhost:8080/tyk/keys/

{
    "keys": [
        "a813594a",
        "818c0752",
        "826a93b0",
        "09b38ec3",
        "f5010cf4",
        "2ad8ba21",
        "7c58c30c",
        "e9da1b2d",
        "34155adf",
        "6aa41d8d",
        "e00d5c08",
        "6bb9f1bf",
        "2723dfa7",
        "4376fe4e",
        "ba87af33",
        "457e0f2d",
        "fc2b9a13",
        "1818c0752",
        "d64b47b9",
        "84b093ca"
    ]
}

Call SI server