This method creates keypairs using one of the following ciphers:
getSigningKeysmethods, in order to further ensure the security of confidential client information, eBay does not store the Private Key value in any system. If a developer loses their Private Key they must generate new keypairs using the
This method is supported in Sandbox environment. To access the endpoint, just replace the
apiz.ebay.com root URI with
This method has no URI parameters.
All requests made to eBay REST operations require you to provide the
Authorization HTTP header for authentication authorization.
In addition, this method requires you to include the Content-Type header and its value should be set to "application/json". See HTTP request headers- opens rest request components page for details.
This request requires an access token created with the client credentials grant flow, using one or more scopes from the following list (please check your Application Keys page for a list of OAuth scopes available to your application):
See OAuth access tokens for more information.
The enumerated value for the cipher to be used to create the signing key. Refer to SigningKeyCiper for the list of supported enum values.
This call has no response headers.
The UNIX timestamp when the
The UNIX timestamp when the
This is the JSON Web Encrypted (JWE) value for the
This is the Private Key that has been generated using the specified
This is the Public Key that has been generated using the specified
Indicates the cipher used to create the keypairs. Refer to SigningKeyCiper for the list of supported enum values.
The system-generated eBay ID for the keypairs.
This call can return one of the following HTTP status codes. For an overview of the status codes, see HTTP status codes in Using eBay RESTful APIs.
|500||Internal Server Error|
For more on errors, plus the codes of other common errors, see Handling errors.
|210000||API_KEYS||APPLICATION||There was a problem with an eBay internal system or process. Contact eBay developer support for assistance.|
|210001||API_KEYS||REQUEST||You must supply a valid signing key cipher. Allowed values are ED25519 and RSA.|
|210005||API_KEYS||REQUEST||You must request with a token having valid application client id.|
|210006||API_KEYS||REQUEST||You must request for new signing key with valid request payload.|
This call has no warnings.
New to making API calls? Please see Making a Call.
Note: Identifiers, such as order IDs or user IDs, and personal data in these samples might be anonymized or may no longer be active on eBay. If necessary, substitute current, relevant eBay data in your requests.
This sample creates Private Key, Public Key, and Public Key as JWE keypairs using an Ed25519 cipher.
Note: Once keypairs are created, developers are strongly advised to create and store a local copy of each keypair for future reference. Although the Public Key, Public Key as JWE, and metadata for keypairs may be retrieved using the
getSigningKeys methods, in order to further ensure the security of confidential client information, eBay does not store the Private Key value in any system. If a developer loses their Private Key they must generate new keypairs using the
This method requires the
signingKeyCipher enum value for the cipher to be used to generate the new keypairs. For this example, an
Ed25519 cipher is specified.
A successful call returns the HTTP status code 200 OK.
The response payload includes the Private Key, Public Key, Public Key as JWE, and additional metadata.