GET /api/apps
Returns a list of apps at the root level (not apps added in the context of a specific organization.) With an optional parameter, lists apps owned by the specified organization.
Authorization Roles/Permissions: Business Admin.
This topic includes the following sections:
HTTP Method
GET
URL
https://{hostname}/api/apps[?BusinessID={BusinessID}]
Sample Request
The example below shows a request for information about the apps for a specific business organization.
Sample Request URL
https://{hostname}/api/apps?BusinessID=8c7d0ba1-b73f-41ee-9144-b5a90173382d.acmepaymentscorp
Sample request headers
Accept: application/vnd.soa.v83+json X-Csrf-Token_acmepaymentscorp: TokenID%3D8ed70a13-8469-11e8-b37a-b155e4eabeb8%2CexpirationTime%3D153...
Sample request body
Not applicable.
Request Headers
For general information on request header values, refer to HTTP Request Headers.
Header | Description |
---|---|
Accept |
Any of the following media types is valid for the Accept header: application/vnd.soa.v83+json, application/vnd.soa.v83+xml |
Cookie | AtmoAuthToken_{fedmemberid}={cookie value, which usually starts with TokenID}—The platform cookie. This is the Akana API Platform authorization token, and must be sent with every API request that requires login. For more information and an example, see Session cookies. |
X-Csrf-Token_{fedmemberID} | The CSRF prevention header; may or may not be required, depending on platform settings. See CSRF Prevention on the Platform. By default, the CSRF header is not required for GET operations and is required for all others, with a few exceptions relating to user login. |
Request Parameters
Parameter | Parm Type | Data Type | Required | Description |
---|---|---|---|---|
BusinessID | Query | string | Optional |
The unique ID for a specific business organization on the platform. If this parameter is included, apps relating to the specified organization are returned. |
Response
If successful, this operation returns HTTP status code 200, with information about apps for the organization.
Sample Response
The sample response below shows successful completion of this operation.
Sample response headers: application/vnd.soa.v83+json
Status Code: 200 OK Content-Type: application/vnd.soa.v83+json Date: Wed, 07 Sep 2016 14:33:31 GMT
Sample response body: application/vnd.soa.v83+json
{ "Application" : [ { "AppID" : "0c194104-45ef-43aa-80f8-84c3e8b359d1.acmepaymentscorp", "Name" : "Billing App 1", "Description" : "Billing App 1", "Created" : "2016-09-07T14:25:52Z", "Updated" : "2016-09-07T14:25:52Z", "State" : "com.soa.app.state.active", "Visibility" : "Public", "AvatarURL" : "http://acmepaymentscorp/api/apps/avatar/_Vis6l3Un8ocFbID2QRgFVmg" }, { "AppID" : "83fe9c95-c1cd-488a-9e25-bdf1d89bcf9e.acmepaymentscorp", "Name" : "Billing App 2", "Description" : "Billing App 2", "Created" : "2016-09-07T14:26:20Z", "Updated" : "2016-09-07T14:26:20Z", "State" : "com.soa.app.state.active", "Visibility" : "Public", "AvatarURL" : "http://acmepaymentscorp/api/apps/avatar/_Vis6l3Un8ocFbID2QRgFVmg" } ] }
Response Headers
For general information on response header values, refer to HTTP Response Headers.
Header | Description |
---|---|
Content-Type | application/vnd.soa.v83+json, application/vnd.soa.v83+xml |
Response Body
Name | Type | Description |
---|---|---|
AppInfos | AppInfos | Contains summary information about one or more apps. |
Error Codes/Messages
If the call is unsuccessful an error code/message is returned. One or more examples of possible errors for this operation are shown below.
Item | Value |
---|---|
401 | Unauthorized. For example, you would get this response if you didn't include the custom X-Csrf-Token_{fedmemberID} header in the request, when it was required by the platform settings; or if you included an invalid or expired value for this header. You would also get this response for any operation that requires login (almost all) if the login cookie was missing. |
500 | An error occurred processing the call. |
More information about Akana API Platform API error messages.