GET /api/apis

Returns information about APIs on the platform. With the optional query parameter, returns information about the APIs associated with the specified business organization.

Authorization Roles/Permissions: Must be logged in and have permission to view the requested resources. If the user is logged in but doesn't have permission to view certain resources, the operation works, but limited (or empty) results are returned.

This topic includes the following sections:

HTTP Method

GET

URL

https://{hostname}/api/apis[?BusinessID={BusinessID}]

Sample Request

The example below uses the optional BusinessID query parameter to request information about APIs associated with the specified business.

Sample Request URL

https://{hostname}/api/apis?BusinessID=c8d4e833-3569-418c-b0e0-ad222be1feef.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 application/vnd.soa.v83+json or 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, only APIs relating to the specified business organization are returned, and the AvatarURL is included if it exists.

Response

If successful, this operation returns HTTP status code 200, with information about the APIs on the platform.

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: Fri, 02 Sep 2016 15:42:25 GMT

Sample response body: application/vnd.soa.v83+json

The example below is in response to a request that does not include the optional query parameter.

{
  "APIInfo" : [ {
    "APIID" : "58596ace-0d7d-4c34-88b1-75530edb8dcb.acmepaymentscorp",
    "Name" : "Crest",
    "Created" : "2016-09-02T15:31:08Z",
    "Updated" : "2016-09-02T15:31:08Z",
    "State" : "com.soa.api.state.active",
    "Visibility" : "Public"
  }, {
    "APIID" : "5f357880-6e42-47f8-b711-e80ce21807de.acmepaymentscorp",
    "Name" : "Billing API",
    "Description" : "Billing API",
    "Created" : "2016-09-02T15:31:35Z",
    "Updated" : "2016-09-02T15:31:35Z",
    "State" : "com.soa.api.state.active",
    "Visibility" : "Public"
  }, {
    "APIID" : "826e71c2-62f8-45b8-aa3f-8df040809358.acmepaymentscorp",
    "Name" : "Payments API",
    "Description" : "Payments API",
    "Created" : "2016-09-02T15:31:55Z",
    "Updated" : "2016-09-02T15:31:55Z",
    "State" : "com.soa.api.state.active",
    "Visibility" : "Public"
  } ]
}

Response Headers

For general information on response header values, refer to HTTP Response Headers.

Header Description
Content-Type application/vnd.soa.v83+json or application/vnd.soa.v83+xml

Response Body

Name Type Description
APIInfos APIInfos Contains information about one or more APIs that were defined using a Swagger 2.0 description document.

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.