GET/signing_key/{signing_key_id}
This method returns the Public Key, Public Key as JWE, and metadata for a specified signingKeyId
associated with the application key making the call.
Note: It is important to note that the privateKey
value is not returned. In order to further ensure the security of confidential client information, eBay does not store the privateKey
value in any system. If a developer loses their privateKey
they must generate new keypairs using the createSigningKey
method.
Input
Resource URI
This method is supported in Sandbox environment. To access the endpoint, just replace the apiz.ebay.com
root URI with apiz.sandbox.ebay.com
URI parameters
Parameter | Type | Description |
---|---|---|
signing_key_id | string | The system-generated eBay ID of the keypairs being requested. Occurrence: Required |
HTTP request headers
All requests made to eBay REST operations require you to provide the Authorization
HTTP header for authentication authorization.
All other standard RESTful request headers are optional. For more information on standard RESTful request headers, see the HTTP request headers- opens rest request components page table.
OAuth scope
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):
https://api.ebay.com/oauth/api_scope
See OAuth access tokens for more information.
Request payload
This call has no payload.
Request fields
This call has no field definitions.
Output
HTTP response headers
This call has no response headers.
Response payload
Response fields
Output container/field | Type | Description |
---|---|---|
creationTime | integer | The UNIX timestamp when the Occurrence: Always |
expirationTime | integer | The UNIX timestamp when the Occurrence: Always |
jwe | string | This is the JSON Web Encrypted (JWE) value for the Occurrence: Always |
privateKey | string | This is the Private Key that has been generated using the specified Occurrence: Conditional |
publicKey | string | This is the Public Key that has been generated using the specified Occurrence: Always |
signingKeyCipher | SigningKeyCipher | Indicates the cipher used to create the keypairs. Refer to SigningKeyCiper for the list of supported enum values. Occurrence: Always |
signingKeyId | string | The system-generated eBay ID for the keypairs. Occurrence: Always |
HTTP status codes
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.
Status | Meaning |
---|---|
200 | OK |
401 | Unauthorized |
403 | Forbidden |
404 | Not found |
500 | Internal Server Error |
Error codes
For more on errors, plus the codes of other common errors, see Handling errors.
Code | Domain | Category | Meaning |
---|---|---|---|
210000 | API_KEYS | APPLICATION | There was a problem with an eBay internal system or process. Contact eBay developer support for assistance. |
210002 | API_KEYS | REQUEST | The signing key with id {signingKeyId} was not found. |
210005 | API_KEYS | REQUEST | You must request with a token having valid application client id. |
Warnings
This call has no warnings.
Samples
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.
Sample 1: Return a specific keypair by signingKeyId
This sample returns the Public Key, Public Key as JWE, and metadata for a specific signingKeyId
associated with the application key making the call.
Note: It is important to note that the Private Key value is not returned. In order to further ensure the security of confidential client information, eBay does not store any Private Key value in any system. If a developer loses their Private Key they must generate a keypairs using the createSigningKey
method.
Input
The keypair to be returned is specified using the signingKeyId
path parameter.
GEThttps://apiz.ebay.com/developer/key_management/v1/signing_key/A*******-****-****-****-***********1
Output
A successful call returns the HTTP status code 200 OK.
The response payload includes the Public Key, Public Key as JWE, and metadata for the specified keypair associated with the application key making the call.