Skip to main content

Create API Keys By Username

Introduction

The "Get API Key By Username" feature allows users to retrieve API keys associated with a specific username. This documentation provides details on how to retrieve API keys by username and includes code examples in various programming languages.

Retrieving API Key

To retrieve an API key by username, users need to make an HTTP GET request to the specified endpoint with the required parameters.

Endpoint

https://api.mypayd.app/v1/api_keys/CqHGA4HT3Nd4u5MmRFQW

Headers

The request should include an X-Auth-Token header with a valid token.

X-Auth-Token                      token

The Token object

The query parameters should include the username for which the API key is being retrieved.

json
{
"name": "user"
}

Code Examples

Below are code examples in different programming languages demonstrating how to retrieve API keys by username using an HTTP GET request.

curl --location -g --request GET 'https://api.mypayd.app/v1/api_keys/CqHGA4HT3Nd4u5MmRFQW' \
--header 'X-Auth-Token: token' \
--data '{
"name": "user"
}'

Conclusion

The "Get API Key By Username" feature provides a convenient way for users to retrieve API keys associated with specific usernames. By following the instructions outlined in this documentation, users can easily retrieve API keys and integrate them into their applications or services.