Authentication

You'll need to authenticate your requests to access any of the endpoints in the Mediacloud API. In this guide, we'll look at how authentication works. Mediacloud offers one ways to authenticate your API requests: Basic authentication token

Basic authentication

With basic authentication, you use your username and password to authenticate your HTTP requests. Unless you have a very good reason, you probably shouldn't use basic auth. Here's how to authenticate using cURL:

Example request with basic auth

curl https://mediacloud.ng/api/media \
  -H "Authorization: Bearer {token}"

Please don't commit your Mediacloud token to GitHub!

Was this page helpful?