Doing your first request
Quickly integrate API service and start using the 1Global services:
- Get your 1GLOBAL client credentials to authenticate your request. You can contact our Sales Team.
- Using the client credentials Get authentication token.
- Make API request to use 1GLOBAL API services.
For making your first request let us use the API key to get a list of the accounts associated with your organization.
In the following example we will refer to the API token as the key ${1Global_Token}
. Let us use the token to get a list of your accounts associated with your organizations.
Include the access token the Authorization header of subsequent API requests using the Bearer authentication schema.
cURL Example
curl -X GET \
https://api.1global.com/enterprise/accounts \
-H 'Authorization: Bearer ${1Global_Token}'
If the request is successful, you should receive a response similar to the following. The response shows that there is only one account created for your organization. A complete list of the return attributes for the /accounts
endpoint can be seen in accounts documentation.
{
"_links": {
"next": {
"href": "https://api.1global.com/enterprise/accounts?cursor=1&limit=10"
}
},
"_embedded": {
"accounts": [
{
"_links": {
"self": {
"href": "https://api.1global.com/enterprise/accounts/acc_045EAABBCCDD746VVV"
}
},
"id": "acc_045EAABBCCDD746VVV",
"name": "ABC Europe Limited",
"country": "GB",
"status": "active"