WARNING

WARNING: These APIs are currently in an 'alpha' state and are likely to change over time. We recommend you not use them in a production setting at this time!


List Companies

Retrieve the Companies that you are authorized to see. Usually there is exactly one.

Definition

GET  /companies

Example Request

curl https://mc-api-activation-reactor-integration.adobe.io/companies \
  -H "Accept: application/vnd.api+json;revision=1" \
  -H "Content-Type: application/vnd.api+json" \
  -H "Authorization: Bearer [TOKEN]" \
  -H "X-Api-Key: [KEY]" \
  -X GET
  

Example Response

200 OK
{
  "data": [
    {
      "id": "CO0d8677bf16fb40619549681d7b79b4e0",
      "type": "companies",
      "attributes": {
        "created_at": "2018-08-01T20:52:49.740Z",
        "name": "Echo Web Development, LLC",
        "org_id": "E6F18C5D535FF84DA5F4DADD@AdobeOrg",
        "updated_at": "2018-08-01T20:52:49.740Z"
      },
      "relationships": {
        "properties": {
          "links": {
            "related": "http://localhost:9010/companies/CO0d8677bf16fb40619549681d7b79b4e0/properties"
          }
        }
      },
      "links": {
        "self": "http://localhost:9010/companies/CO0d8677bf16fb40619549681d7b79b4e0",
        "properties": "http://localhost:9010/companies/CO0d8677bf16fb40619549681d7b79b4e0/properties"
      },
      "meta": {
        "rights": [
          "manage_properties"
        ]
      }
    },
    {
      "id": "CO3bf948dd1753470fa6d6433ad58f8dda",
      "type": "companies",
      "attributes": {
        "created_at": "2018-08-01T20:52:49.766Z",
        "name": "Launchy McCloudface",
        "org_id": "293D4296024FA28A1809F041@AdobeOrg",
        "updated_at": "2018-08-01T20:52:49.766Z"
      },
      "relationships": {
        "properties": {
          "links": {
            "related": "http://localhost:9010/companies/CO3bf948dd1753470fa6d6433ad58f8dda/properties"
          }
        }
      },
      "links": {
        "self": "http://localhost:9010/companies/CO3bf948dd1753470fa6d6433ad58f8dda",
        "properties": "http://localhost:9010/companies/CO3bf948dd1753470fa6d6433ad58f8dda/properties"
      },
      "meta": {
        "rights": [
          "manage_properties"
        ]
      }
    },
    {
      "id": "COa4448d6d06d643cc83b9e5c5e4699e88",
      "type": "companies",
      "attributes": {
        "created_at": "2018-08-01T20:52:49.037Z",
        "name": "Summit",
        "org_id": "889A0A26EF348EB0439F8E31@AdobeOrg",
        "updated_at": "2018-08-01T20:52:49.037Z"
      },
      "relationships": {
        "properties": {
          "links": {
            "related": "http://localhost:9010/companies/COa4448d6d06d643cc83b9e5c5e4699e88/properties"
          }
        }
      },
      "links": {
        "self": "http://localhost:9010/companies/COa4448d6d06d643cc83b9e5c5e4699e88",
        "properties": "http://localhost:9010/companies/COa4448d6d06d643cc83b9e5c5e4699e88/properties"
      },
      "meta": {
        "rights": [
          "manage_properties"
        ]
      }
    },
    {
      "id": "CO7a5089ebb61c4853ac2a494b1512fe2e",
      "type": "companies",
      "attributes": {
        "created_at": "2018-08-01T20:53:19.429Z",
        "name": "Thom Boyer",
        "org_id": "3DB07B845A7DE2990A494126@AdobeOrg",
        "updated_at": "2018-08-01T20:53:19.429Z"
      },
      "relationships": {
        "properties": {
          "links": {
            "related": "http://localhost:9010/companies/CO7a5089ebb61c4853ac2a494b1512fe2e/properties"
          }
        }
      },
      "links": {
        "self": "http://localhost:9010/companies/CO7a5089ebb61c4853ac2a494b1512fe2e",
        "properties": "http://localhost:9010/companies/CO7a5089ebb61c4853ac2a494b1512fe2e/properties"
      },
      "meta": {
        "rights": [
          "manage_properties"
        ]
      }
    }
  ],
  "meta": {
    "pagination": {
      "current_page": 1,
      "next_page": null,
      "prev_page": null,
      "total_pages": 1,
      "total_count": 4
    }
  }
}