List Organizations
GEThttps://sight.inspectorio.com/api/v1/organizations
List Organizations
Request​
Query Parameters
offset integer
Possible values: >= 0
Default value:
0
limit integer
Possible values: >= 1
and <= 100
Limit result of list
Default value:
10
name string
Filter organizations by name
Responses​
- 200
- 400
- 401
- 422
- 429
- 500
OK
- application/json
- Schema
- Example (auto)
Schema
data object[]
limitintegerrequired
offsetintegerrequired
totalintegerrequired
{
"data": [
{
"address": "5 Madison Avenue",
"address2": "Suite 101",
"billing_email": "email@test.com",
"city": "New York",
"contacts": [
{
"email": "john@acme.com",
"firstName": "John",
"lastName": "Doe",
"phone": "1505123123",
"workPhone": "1505456456"
}
],
"country": "US",
"createdAt": "2021-06-02 12:34:02.861000+00:00",
"id": "string",
"linkedId": "string",
"linkedTo": "3111222",
"location": {
"latitude": 38.8951,
"longitude": -77.0364
},
"name": "Acme Corp",
"phone": "1505111222",
"postal": "A1B2C3",
"province": "New York",
"type": "S",
"updatedAt": "2021-06-02 12:34:02.861000+00:00",
"description": "This is a description"
}
],
"limit": 0,
"offset": 0,
"total": 0
}
Bad request
- application/json
- Schema
- Example (auto)
Schema
errorCodestring
Example:
Generic
messagestring
Example:
Bad Request
{
"errorCode": "Generic",
"message": "Bad Request"
}
Unauthorized
- application/json
- Schema
- Example (auto)
Schema
errorCodestring
Example:
Generic
messagestring
Example:
Cannot retrieve session data because of expired token
{
"errorCode": "Generic",
"message": "Cannot retrieve session data because of expired token"
}
Validation Error
- application/json
- Schema
- Example (auto)
Schema
errorCodestring
Example:
Generic
errorsobject
Example:
{"type":["Input type is not valid"]}
messagestring
Example:
Validation error
{
"errorCode": "Generic",
"errors": {
"type": [
"Input type is not valid"
]
},
"message": "Validation error"
}
Rate-limiting Error
- application/json
- Schema
- Example (auto)
Schema
errorCodestring
Example:
Generic
messagestring
Example:
Too many requests
{
"errorCode": "Generic",
"message": "Too many requests"
}
Internal Error
- application/json
- Schema
- Example (auto)
Schema
errorCodestring
Example:
Generic
errorsobject
Example:
{"system":["Internal error detail message"]}
messagestring
Example:
Internal server error
{
"errorCode": "Generic",
"errors": {
"system": [
"Internal error detail message"
]
},
"message": "Internal server error"
}
Authorization: apiKey
name: apiKeytype: apiKeyin: header
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L 'https://sight.inspectorio.com/api/v1/organizations' \
-H 'Accept: application/json' \
-H 'apiKey: <apiKey>'
ResponseClear