---
updatedAt: 2026-04-21T02:04:25.000Z
agentTools:
  projectIndex: https://developer.azupay.com.au/llms.txt
---

# Get API keys for Sub Merchants

Get API keys

For detailed information on using this API endpoint, please refer to this API reference guide documentation: [Retrieving an API Key](https://developer.azupay.com.au/docs/api-key-management#/retrieving-an-api-key)

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "API Reference",
    "description": "API Reference",
    "version": "v1",
    "contact": {
      "email": "contactus@azupay.com.au"
    }
  },
  "servers": [
    {
      "url": "https://api-uat.azupay.com.au/v1",
      "description": "UAT environment"
    },
    {
      "url": "https://api.azupay.com.au/v1",
      "description": "Production environment"
    }
  ],
  "x-tagGroups": [
    {
      "name": "Receive payments - AzupayId",
      "tags": [
        "Payment Request"
      ]
    },
    {
      "name": "Make payments - AzupayOut",
      "tags": [
        "Accounts",
        "Payment"
      ]
    },
    {
      "name": "Payment Agreements - AzupayTo",
      "tags": [
        "Payment Agreement",
        "Payment Initiation",
        "Payment Agreement Request"
      ]
    },
    {
      "name": "Accounts",
      "tags": [
        "Check Accounts"
      ]
    },
    {
      "name": "Reports",
      "tags": [
        "Billing and Transaction Reports",
        "Current Balances"
      ]
    },
    {
      "name": "Configuration",
      "tags": [
        "Clients",
        "PayID Domains",
        "API Keys"
      ]
    }
  ],
  "tags": [
    {
      "name": "API Keys",
      "description": "Manage API keys for your clients.\n"
    }
  ],
  "components": {
    "securitySchemes": {
      "SecretKey": {
        "description": "The secret key is used to access restricted functions and should be stored\nsecurely in your system. It is required for operations which may result in\nadditional charges to you as a merchant. Please protect the key by storing\nit encrypted granting access only to a limited set of users and applications\nrequiring its use.\n",
        "in": "header",
        "name": "Authorization",
        "type": "apiKey"
      }
    },
    "schemas": {
      "SubClientIdObj": {
        "type": "string",
        "description": "Your client’s unique identifier that we provide you during the initial onboarding request.\n",
        "minLength": 5,
        "maxLength": 50,
        "example": "CLIENT1"
      },
      "GetApiKeyResponseObj": {
        "type": "object",
        "description": "Response object that provides detailed information about an existing API key, including its current status, capabilities, and permissions.\n",
        "additionalProperties": false,
        "properties": {
          "keyID": {
            "type": "string",
            "description": "A unique identifier for the API key. This ID is used to reference and manage the key programmatically.\n",
            "example": "SECRE408AB"
          },
          "hmacEnabled": {
            "type": "boolean",
            "description": "Indicates whether HMAC-based authentication is enabled for this API key. If true, requests authenticated with this key must be signed using HMAC.\n",
            "example": true
          },
          "enabled": {
            "type": "boolean",
            "description": "Represents whether the API key is currently active and allowed to be used. If set to false, the key is considered disabled and cannot be used for authentication.\n",
            "example": true
          },
          "permittedOperations": {
            "type": "array",
            "description": "A list of operations that the API key is authorized to perform. These may correspond to specific API actions, endpoints, or permission scopes.\n",
            "items": {
              "type": "string",
              "example": "RestAPI/POST/paymentRequest"
            },
            "example": [
              "RestAPI/POST/paymentRequest",
              "RestAPI/GET/paymentRequest"
            ]
          }
        }
      },
      "GetApiKeysResponseObj": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/GetApiKeyResponseObj"
        }
      },
      "ErrorModel": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "message"
        ],
        "properties": {
          "message": {
            "type": "string"
          },
          "details": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "failureCode": {
                "type": "string"
              },
              "failureReason": {
                "type": "string"
              }
            },
            "required": [
              "failureCode",
              "failureReason"
            ]
          }
        }
      }
    }
  },
  "paths": {
    "/client/{clientId}/apiKeys": {
      "get": {
        "parameters": [
          {
            "name": "clientId",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/SubClientIdObj"
            }
          }
        ],
        "security": [
          {
            "SecretKey": []
          }
        ],
        "tags": [
          "API Keys"
        ],
        "summary": "Get API keys for Sub Merchants",
        "description": "Get API keys",
        "operationId": "getApiKeys",
        "responses": {
          "200": {
            "description": "API keys record",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/GetApiKeysResponseObj"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorModel"
                }
              }
            }
          },
          "401": {
            "description": "Invalid Authorization header",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ErrorModel"
                    },
                    {
                      "properties": {
                        "message": {
                          "example": "Unauthorized"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ErrorModel"
                    },
                    {
                      "properties": {
                        "message": {
                          "example": "User is not authorized to access this resource with an explicit deny"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Client ID not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorModel"
                }
              }
            }
          }
        }
      }
    }
  }
}
```