Title: API Key
Last modified: May 5, 2017

---

# API Key

 *  [SK](https://wordpress.org/support/users/sooskriszta/)
 * (@sooskriszta)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/api-key-119/)
 * **SparkPost Settings** asks for providing an API key.
 * In my SparkPost account, I am able to create an API key, but can’t see it (except
   the first 4 digits).
 * How do I enter the API key????
 * I have tried entering only the first 4 digits but in that case, I am getting
 *     ```
       Preparing request data
       Request headers: Array( [User-Agent] => wordpress-sparkpost/3.0.1 [Content-Type] => application/json [Authorization] => 8096************************************)
       Request body: {"recipients":[{"address":{"email":"vivek@csillamvilag.com","header_to":"vivek@csillamvilag.com"}}],"options":{"open_tracking":true,"click_tracking":true,"transactional":true},"content":{"from":{"email":"wordpress@rajsorsolya.csillamvilag.hu","name":"WordPress"},"subject":"SparkPost email test","headers":{"Date":"Fri, 5 May 2017 16:15:42 +0000","Message-ID":"<54bff80a34991244a3975a8913f69c71@rajsorsolya.csillamvilag.hu>","X-Mailer":"PHPMailer 5.2.22 (https:\/\/github.com\/PHPMailer\/PHPMailer)"},"html":"<h3>Hurray!!<\/h3><p>You've got mail! <br\/><br> Regards,<br\/><a href=\"https:\/\/www.sparkpost.com\">SparkPost<\/a> WordPress plugin<\/p>"}}
       Making HTTP POST request to https://api.sparkpost.com/api/v1/transmissions
       Response received
       Response headers: Requests_Utility_CaseInsensitiveDictionary Object( [data:protected] => Array ( [date] => Fri, 05 May 2017 16:15:42 GMT [content-type] => application/json [server] => msys-http [cache-control] => no-cache, no-store ))
       Response body: {"errors": [ {"message": "Unauthorized."} ]}
       Error in transmission
       ```
   

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Contributor [rajuru](https://wordpress.org/support/users/rajuru/)
 * (@rajuru)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/api-key-119/#post-9101499)
 * [@sooskriszta](https://wordpress.org/support/users/sooskriszta/)
    SparkPost shows
   you the full key immediately after creating. So if you don’t have full key, you
   can generate new one. After creating it, copy it and paste in plugin’s settings
   page.
 * If you are not aware of usage of your previous key, consider deleting it to avoid
   potential abuse.
 * [https://www.sparkpost.com/docs/getting-started/create-api-keys/](https://www.sparkpost.com/docs/getting-started/create-api-keys/)
 * Thanks
 *  [DianaN](https://wordpress.org/support/users/desertdianagmailcom/)
 * (@desertdianagmailcom)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/api-key-119/#post-9101573)
 * If you didn’t copy and whole key when you created it you will need to delete 
   that key, and create a new one. Then copy the whole key you will see and paste
   that into your api key field in the plugin on your site.
 * I always keep a word doc or txt file with all my keys incase I need to add them
   back in the future.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘API Key’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/sparkpost_763a21.svg)
 * [SparkPost](https://wordpress.org/plugins/sparkpost/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sparkpost/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sparkpost/)
 * [Active Topics](https://wordpress.org/support/plugin/sparkpost/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sparkpost/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sparkpost/reviews/)

## Tags

 * [api key](https://wordpress.org/support/topic-tag/api-key/)

 * 2 replies
 * 3 participants
 * Last reply from: [DianaN](https://wordpress.org/support/users/desertdianagmailcom/)
 * Last activity: [8 years, 11 months ago](https://wordpress.org/support/topic/api-key-119/#post-9101573)
 * Status: not resolved