Support » Plugin: SparkPost » API Key

  • OC2PS

    (@sooskriszta)


    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

    (@rajuru)

    @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/

    Thanks

    desertdiana

    (@desertdianagmailcom)

    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.