Organizations
Information
Metadata for an organization.
This endpoint returns an organization
API version
2023-06-16The creation date of the organization
2022-01-01T00:00:00ZThe update date of the organization
2022-01-01T00:00:00ZThe full name of the organization
Organization 1The ISO 3166-1 alpha-2 country code of the organization
USThe city of the organization
New YorkThe zip code of the organization
10001The physical address of the organization
123 Main StThe registration number of the organization
123456The website of the organization
http://example.comThe logo of the organization
logo.pngThe ID of the organization
123e4567-e89b-12d3-a456-426614174000The type of the organization
projectProponentPossible values: The public status of the organization
trueThe api URL of the organization
https://api.carbonregistry.com/app/organizations/123e4567-e89b-12d3-a456-426614174000GET /organizations/{id} HTTP/1.1
Host: api.carbonregistry.com
Accept: */*
{
"createdAt": "2022-01-01T00:00:00Z",
"updatedAt": "2022-01-01T00:00:00Z",
"fullName": "Organization 1",
"countryCode": "US",
"city": "New York",
"zip": "10001",
"physicalAddress": "123 Main St",
"registrationNumber": "123456",
"website": "http://example.com",
"logo": "logo.png",
"id": "123e4567-e89b-12d3-a456-426614174000",
"organizationIndustries": {
"code": "IND1",
"name": "Industry 1"
},
"type": "projectProponent",
"isPublic": true,
"url": "https://api.carbonregistry.com/app/organizations/123e4567-e89b-12d3-a456-426614174000"
}Gets base information on a specific organization.
Callable by any access token with permissions "organization_info:read".
Organization's Inventory Accounts
Returns the inventory accounts that this organization owns. Default and subaccounts.
This endpoint returns an organization's public evm addresses
API version
2023-06-16The creation date of the organization
2022-01-01T00:00:00ZThe update date of the organization
2022-01-01T00:00:00ZThe full name of the organization
Organization 1The ISO 3166-1 alpha-2 country code of the organization
USThe city of the organization
New YorkThe zip code of the organization
10001The physical address of the organization
123 Main StThe registration number of the organization
123456The website of the organization
http://example.comThe logo of the organization
logo.pngThe ID of the organization
123e4567-e89b-12d3-a456-426614174000The type of the organization
projectProponentPossible values: The public status of the organization
trueThe api URL of the organization
https://api.carbonregistry.com/app/organizations/123e4567-e89b-12d3-a456-426614174000GET /organizations/{id}/addresses HTTP/1.1
Host: api.carbonregistry.com
Accept: */*
{
"createdAt": "2022-01-01T00:00:00Z",
"updatedAt": "2022-01-01T00:00:00Z",
"fullName": "Organization 1",
"countryCode": "US",
"city": "New York",
"zip": "10001",
"physicalAddress": "123 Main St",
"registrationNumber": "123456",
"website": "http://example.com",
"logo": "logo.png",
"id": "123e4567-e89b-12d3-a456-426614174000",
"organizationIndustries": {
"code": "IND1",
"name": "Industry 1"
},
"type": "projectProponent",
"isPublic": true,
"url": "https://api.carbonregistry.com/app/organizations/123e4567-e89b-12d3-a456-426614174000"
}Gets the public wallet addresses of an organization. Mainly used for getting addresses to deposit credits into or to get inventory data for subaccounts.
Callable by any access token with permissions "organization_info:read".
Organization Inventory
This is the main inventory of an organization. Currently only "read" and "read and request" access are available for the inventory. The "read and request" access gives an app the permission to make transfer / retirement requests toward the credits in the organization's inventory.
This endpoint returns a list of the organization's inventory
If defined returns the development inventory
API version
2023-06-16The ID of the organization
123e4567-e89b-12d3-a456-426614174000GET /organizations/{id}/inventory HTTP/1.1
Host: api.carbonregistry.com
Accept: */*
{
"credits": [
{
"organizationId": "123e4567-e89b-12d3-a456-426614174000",
"id": "exPost-2-0x1234567890abcdef",
"tokenId": "abcdef",
"tokenAddress": "0x1234567890abcdef",
"project": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"fullName": "Project 1",
"url": "https://api.carbonregistry.com/projects/47abd663-fb35-4b2e-ad08-c347e761649e",
"publicUrl": "https://carbonregistry.com/explore/projects/47abd663-fb35-4b2e-ad08-c347e761649e",
"num": "713"
},
"serialization": "ICR-ISL-354-78040-14-R-0-2021",
"vintage": "2020",
"supply": 1000,
"unit": "tonne",
"amount": 100,
"type": "exAnte"
}
],
"organizationId": "123e4567-e89b-12d3-a456-426614174000"
}This returns all the credits in an organization's inventory.
Callable by any access token with permissions "organization_inventory:read".
This endpoint creates a transaction for credits in the organization's inventory
The action to perform on the token credit, one of transfer, retire, transfer_retire, cancel
The ID of the organization
123e4567-e89b-12d3-a456-426614174000API version
2023-06-16The ID of the token credit
exPost-2-0x1234567890abcdefThe amount of the token credit
100The ID of the organization receiving the token credit - if not provided, toAddress must be provided
123e4567-e89b-12d3-a456-426614174000The address of the organization receiving the token credit - if not provided, toOrganizationId must be provided
0x1234567890abcdefAction of the credit request
Type of the credit request
ID of the credit request
123e4567-e89b-12d3-a456-426614174000Address of the recipient of the credit request
0x1234567890abcdefTimestamp of when the credit request was created
2022-01-01T00:00:00ZTimestamp of when the credit request was last updated
2022-01-01T00:00:00ZID of the token associated with the credit request
123e4567-e89b-12d3-a456-426614174000Address of the token associated with the credit request
0x1234567890abcdefID of the credit associated with the credit request
exPost-2-0x1234567890abcdefSerialization of the credit request
serializationThe vintage year of the credit
2020Amount of the credit request
1000ID of the organization sending the credit request
123e4567-e89b-12d3-a456-426614174000ID of the organization receiving the credit request
123e4567-e89b-12d3-a456-426614174000ID of the transaction associated with the credit request
0x1234567890abcdefState of the credit request: cancelled | failed | pending_onchain | pending_queue | pending_request | pending_reserved | processed | rejected
The retirement ID of the reservation
1Reason for retirement of the credit request
reasonComment for retirement of the credit request
commentName of the beneficiary of the credit request
John DoePOST /organizations/{id}/inventory/action/{action} HTTP/1.1
Host: api.carbonregistry.com
Content-Type: application/json
Accept: */*
Content-Length: 253
{
"creditId": "exPost-2-0x1234567890abcdef",
"amount": 100,
"toOrganizationId": "123e4567-e89b-12d3-a456-426614174000",
"toAddress": "0x1234567890abcdef",
"retirementData": {
"reason": "Retirement reason",
"beneficiaryName": "John Doe",
"comment": "This is a comment"
}
}{
"action": "transfer",
"type": "exAnte",
"id": "123e4567-e89b-12d3-a456-426614174000",
"toAddress": "0x1234567890abcdef",
"createdAt": "2022-01-01T00:00:00Z",
"updatedAt": "2022-01-01T00:00:00Z",
"tokenId": "123e4567-e89b-12d3-a456-426614174000",
"tokenAddress": "0x1234567890abcdef",
"creditId": "exPost-2-0x1234567890abcdef",
"serialization": "serialization",
"vintage": "2020",
"amount": 1000,
"fromOrganizationId": "123e4567-e89b-12d3-a456-426614174000",
"toOrganizationId": "123e4567-e89b-12d3-a456-426614174000",
"project": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"fullName": "Project 1",
"url": "https://api.carbonregistry.com/projects/47abd663-fb35-4b2e-ad08-c347e761649e",
"publicUrl": "https://carbonregistry.com/explore/projects/47abd663-fb35-4b2e-ad08-c347e761649e",
"num": "713"
},
"txId": "0x1234567890abcdef",
"state": "processed",
"transactionData": {
"creditId": "text",
"tokenId": "text",
"amount": 1,
"serialization": "text"
},
"retirementId": "1",
"retirementReason": "reason",
"retirementComment": "comment",
"beneficiaryName": "John Doe"
}Creates a "transfer" / "retire" / "transfer_retire" transaction and puts it in the processing queue. To monitor the state of the transaction you can query the transaction endpoint.
Callable by any access token with permissions "organization_inventory:read_write".
This endpoint returns an organization's transaction
API version
2023-06-16Action of the credit request
Type of the credit request
ID of the credit request
123e4567-e89b-12d3-a456-426614174000Address of the recipient of the credit request
0x1234567890abcdefTimestamp of when the credit request was created
2022-01-01T00:00:00ZTimestamp of when the credit request was last updated
2022-01-01T00:00:00ZID of the token associated with the credit request
123e4567-e89b-12d3-a456-426614174000Address of the token associated with the credit request
0x1234567890abcdefID of the credit associated with the credit request
exPost-2-0x1234567890abcdefSerialization of the credit request
serializationThe vintage year of the credit
2020Amount of the credit request
1000ID of the organization sending the credit request
123e4567-e89b-12d3-a456-426614174000ID of the organization receiving the credit request
123e4567-e89b-12d3-a456-426614174000ID of the transaction associated with the credit request
0x1234567890abcdefState of the credit request: cancelled | failed | pending_onchain | pending_queue | pending_request | pending_reserved | processed | rejected
The retirement ID of the reservation
1Reason for retirement of the credit request
reasonComment for retirement of the credit request
commentName of the beneficiary of the credit request
John DoeGET /organizations/{id}/transactions/{transactionId} HTTP/1.1
Host: api.carbonregistry.com
Accept: */*
{
"action": "transfer",
"type": "exAnte",
"id": "123e4567-e89b-12d3-a456-426614174000",
"toAddress": "0x1234567890abcdef",
"createdAt": "2022-01-01T00:00:00Z",
"updatedAt": "2022-01-01T00:00:00Z",
"tokenId": "123e4567-e89b-12d3-a456-426614174000",
"tokenAddress": "0x1234567890abcdef",
"creditId": "exPost-2-0x1234567890abcdef",
"serialization": "serialization",
"vintage": "2020",
"amount": 1000,
"fromOrganizationId": "123e4567-e89b-12d3-a456-426614174000",
"toOrganizationId": "123e4567-e89b-12d3-a456-426614174000",
"project": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"fullName": "Project 1",
"url": "https://api.carbonregistry.com/projects/47abd663-fb35-4b2e-ad08-c347e761649e",
"publicUrl": "https://carbonregistry.com/explore/projects/47abd663-fb35-4b2e-ad08-c347e761649e",
"num": "713"
},
"txId": "0x1234567890abcdef",
"state": "processed",
"transactionData": {
"creditId": "text",
"tokenId": "text",
"amount": 1,
"serialization": "text"
},
"retirementId": "1",
"retirementReason": "reason",
"retirementComment": "comment",
"beneficiaryName": "John Doe"
}Gets a specific transaction.
Callable by any access token with permissions "organization_inventory:read".
Testing endpoints
friendbot - test credits
This endpoint sends 100 credits to the organization account that owns the calling api key. Only on testnet.
API version
2023-06-16The serialization string representing the credit to be transfered
ICR-ALB-355-77993-2-A-0-2023The amount of credits sent to your address
1000The onchain transaction hash
0xcc73d182db1f36dbadf14205de7d543cfd1343396b50d34c768529aaab46a1c0GET /organizations/{id}/friendbot HTTP/1.1
Host: api.carbonregistry.com
Accept: */*
{
"serialization": "ICR-ALB-355-77993-2-A-0-2023",
"amount": 1000,
"transactionId": "0xcc73d182db1f36dbadf14205de7d543cfd1343396b50d34c768529aaab46a1c0"
}To get some test credits into your organization on the sandbox you can use this endpoint with and organization Id that you control. It will deposit a 100 credits into your organization.
Callable by any access token regardless of permissions.
Last updated