GET /industries

List industries

List all industries. This is useful for finding the industry_id parameter for the /organizations endpoint. Pagination follows RFC 5988, with the Link header containing the next and last links. Follow the next link to get the next page of results.

Code Examples

API Key:
curl -X GET "https://api.ditchcarbon.com/industries" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY"

API Explorer

Loading API Explorer...

Responses

200 Industries list

Content type: application/json

Response Fields

400 Bad request

Content type: application/json

Response Fields

FieldTypeDescription
statusinteger
titlestring
detailstring

Example Response

{
  "status": 123,
  "title": "string",
  "detail": "string"
}

401 Unauthorized

Content type: application/json

Response Fields

FieldTypeDescription
statusinteger
titlestring
detailstring

Example Response

{
  "status": 123,
  "title": "string",
  "detail": "string"
}

404 Organization Not found

Content type: application/json

Response Fields

FieldTypeDescription
statusinteger
detailstring

Example Response

{
  "status": 123,
  "detail": "string"
}

422 Unrecognized Parameters

Content type: application/json

Response Fields

FieldTypeDescription
statusinteger
titlestring
detailstring

Example Response

{
  "status": 123,
  "title": "string",
  "detail": "string"
}

429 Too many organizations

Content type: application/json

Response Fields

FieldTypeDescription
statusinteger
titlestring
detailstring

Example Response

{
  "status": 123,
  "title": "string",
  "detail": "string"
}

500 Server Error

Content type: application/json

Response Fields

FieldTypeDescription
statusinteger
titlestring
detailstring

Example Response

{
  "status": 123,
  "title": "string",
  "detail": "string"
}