| copyright |
|
||
|---|---|---|---|
| lastupdated | 2016-11-22 |
{:new_window: target="_blank"} {:shortdesc: .shortdesc} {:screen: .screen} {:codeblock: .codeblock} {:pre: .pre}
{: #rest_connect}
To connect to {{site.data.keyword.messagehub}}, the Kafka REST API uses the api_key and kafka_rest_url
credentials from the VCAP_SERVICES environment variable.
To authenticate with the {{site.data.keyword.messagehub}} Kafka REST API, you must specify the api_key in the X-Auth-Token header of your requests.