Use CJA with cURL
cURL is a command line tool that allows you to transfer data across various network protocols. You can use cURL to submit API calls to Adobe.
Prerequisites
Make sure that you meet all requirements on the Getting started page, including:
- Your user account belonging to the correct product profile in the Adobe Admin Console
- An API client created in the Adobe Developer Console
Send a simple API call using cURL
Open your operating system's command prompt or terminal.
Type
curl -V
then press enter. Make sure that-V
is capitalized.If you get cURL's version number and list of supported features, you have the tool installed. If you get an unrecognized command, install cURL.
Adobe requires three headers for API calls. You can use the
-H
option to include them.- x-api-key: The Client ID found in the Adobe Developer Console.
- x-gw-ims-org-id: The Organization ID found in the Adobe Developer Console.
- access_token: The access token generated from the JWT.
Formulate the API call to Adobe with the required headers and an API call retrieving basic user information:
Copied to your clipboardcurl -X GET -H "x-api-key: {CLIENT_ID}" -H "x-gw-ims-org-id: {ORGANIZTION_ID}" -H "authorization: Bearer {ACCESS_TOKEN}" "https://cja.adobe.io/aresconfig/users/me"Adobe's servers return a JSON object containing information around the technical account.
You can now use the API Reference to send API calls to the CJA API.