Account
API Authorization
Before you can make requests to this resource, you must have a valid bearer token. Review our API authorization guide to learn how to generate a token. Here's a curl example of how to define your access token in a header:
curl -L "https://iam.api.korewireless.com/v1/accounts" -H "Authorization: Bearer <YOUR_ACCESS_TOKEN>"
The examples below do not show the required Authorization
header due to a bug. We're working on fixing that. In the meantime, be sure to include that in all of your requests.
This endpoint retrieves the platform mappings for an account and its child accounts.
The account ID is a unique identifier of your account, which begins with acct_. This optional filter parameter lets you get platforms mapped to a specific account.
acct_xxx
GET /v1/platform_account_mappings HTTP/1.1
Host: iam.api.korewireless.com
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
"platforms": [
{
"id": "text",
"legacy_account_id": "text",
"platform": "twilio"
}
]
}
This endpoint is used to create a child account.
Friendly name of the account
Brief description of the account
POST /v1/accounts HTTP/1.1
Host: iam.api.korewireless.com
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 45
{
"friendly_name": "text",
"description": "text"
}
{
"id": "text",
"parent_id": "text",
"date_created": "text",
"friendly_name": "text",
"status": "ACTIVE"
}
This endpoint retrieves the information for an account and its child accounts.
The account ID is a unique identifier of your account, which begins with acct_. This optional filter parameter lets you get information for a specific account.
acct_xxx
GET /v1/accounts HTTP/1.1
Host: iam.api.korewireless.com
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
"accounts": [
{
"id": "text",
"parent_id": "text",
"date_created": "text",
"friendly_name": "text",
"status": "ACTIVE"
}
]
}
Last updated
Was this helpful?