GET /accounts/.../instances

GET /accounts/instances

GET /accounts/{id}/instances

Retrieve a list of the authenticated adapter instances associated with an account. 

The endpoints to retrieve adapter instances by account are:

  • GET /accounts/instances
    • Retrieve a list of authenticated adapter instances based on the account associated with the logged in user or the Organization and User Secret passed with the request
  • GET/accounts/{id}/instances
    • Retrieve a list of authenticated adapter instances within an account by passing the account id with the request.

Path Parameters

Only used for GE/accounts/{id}/instances.

id
The unique identifier for an account within an organization.

Response Fields

See the element/instances documentation.

GET /accounts/instances Example Request

curl -X GET \
  https://api-us.integrate.sugarapps.com/elements/api-v2/accounts/instances \ 
  -H 'authorization: User sAfK7LJGNz5ZHcNrvdJvLI=f03WbTbH6aRKc0HJ3oOIi, Organization 58168435e3b9959a929eb04b6218b9a2' \
  -H 'Content-Type: application/json' \

GET /accounts/{id}/instances Example Request

curl -X GET \
https://api-us.integrate.sugarapps.com/elements/api-v2/accounts/156162/instances\
-H 'authorization: User sAfK7LJGNz5ZHcNrvdJvLI=f03WbTbH6aRKc0HJ3oOIi, Organization 58168435e3b9959a929eb04b6218b9a2' \
-H 'Content-Type: application/json' \

Example Response

{  
  "id":471196,
  "name":"MyElement",
  "token":"ABC/Dxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "element":{  
    "id":23,
    "name":"Salesforce Sales Cloud",
    "key":"sfdc",
    "image":"elements/provider_sfdc.png",
    "deleted":false,
    "typeOauth":true,
    "trialAccount":false,
    "transformationsEnabled":false,
    "bulkDownloadEnabled":false,
    "bulkUploadEnabled":false,
    "cloneable":false,
    "extendable":false,
    "beta":false,
    "extended":false
  },
  "elementId":23,
  "valid":true,
  "disabled":false,
  "maxCacheSize":0,
  "cacheTimeToLive":0,
  "configuration":{  

  },
  "eventsEnabled":false,
  "traceLoggingEnabled":false,
  "cachingEnabled":false,
  "externalAuthentication":"none",
  "user":{  
    "id":178542
  }
}