Get organization data

This method allows you to get data of all the organizations that you have registered with TrustyTribe from a single account. The response includes the details of the organization along with slug, organization ID, public key, private key and the plan you have subscribed to and its status. Paginating the results is possible with results per page option.

HTTP method: GET
Authentication: Public_key::Private_key
URL: https://api.trustytribe.com/organization

Curl Request :


curl -X GET --header 'Accept: application/json' --header 'Authorization: Public_key::Private_key' 'https://api.trustytribe.com/organization'
            
<> Parameters
page | Optional Integer

The page to retrieve. If the page number requested is higher than the available number of pages an empty array will be returned.

Example: ?page=2


perPage | Optional Integer

The number of results to be retrieved per page.

DefaultValue: 10

Example: ?perPage=3


Response
{
  "meta": {
    "count": 1,
    "pageCount": null,
    "totalCount": null,
    "next": null,
    "previous": null,
    "self": "https://api.trustytribe.com/organization?page=1&perPage=10",
    "first": "https://api.trustytribe.com/organization?page=1&perPage=10",
    "last": null
  },
  "results": [
    {
      "zip": "NE17",
      "country": "US",
      "website": "https://example.com",
      "unique_id": "ee8e35f7-78fd-4b89-8992-f92ec7634",
      "paid_status": "PAID",
      "address": "123, Bake Street, New York, US.",
      "description": "This is a sample Organization",
      "domains": "[https://www.example.com, https://example.com, https://beta.example.com, http://web.example.com]",
      "title": "Example Org",
      "sandbox_public_key": "sandbox_pub_266219b45896eb6c17a6",
      "updated_at": 1515057668459,
      "live_public_key": "live_pub_eyJ1aWQiOjIsInBlcm1pc3Npb25zIjpbIlRydXN0eVdtYmFwcENsaWVudCJdLCJpYXQiOjE1MDk0MzAzMDd9",
      "sandbox_private_key": "sandbox_pri_41fa0b94of91b6e5207f",
      "live_private_key": "live_pri_vZ2DQCK_3t3KiDEWst9CouUWo82QNWGs0IKXm_DcTLg",
      "photo_url": "http://photobucket.com/testImg.jpg",
      "customer_id": "cus_C4eCOtlb6Ko",
      "plan": "lite",
      "email": "[email protected]",
      "slug": "example.com",
      "id": 666
    }
  ]
}