Skip to main content
GET
/
sub-accounts
/
{subAccountId}
Get Details
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.thanks.io/api/v2/sub-accounts/{subAccountId}', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "id": 1,
  "user_id": 2,
  "title": "My New Sub Account",
  "return_name": "John Smith",
  "return_address": "123 Smith Street 11",
  "return_address2": "Apt 1",
  "return_city": "Denver",
  "return_state": "CO",
  "return_postal_code": "12345",
  "message_background_url": null,
  "postcard6x9_background_url": null,
  "notecard_background_url": null,
  "windowedletter_background_url": null,
  "windowlessletter_background_url": null,
  "branding_fields": {
    "accentColor": "#5f01d1",
    "symbol": "",
    "logo": "https://s3.amazonaws.com/content-staging.thanks.io/templates/dynamic-images/5dcb82c0-f258-11ef-9c99-e542d768ea52.png",
    "disclaimer": null,
    "headshot": null,
    "name": "John Gray",
    "email": "test@test.com",
    "phone": "1234567890",
    "company": null,
    "domain": null,
    "set": true,
    "first_name": "John"
  },
  "created_at": "2020-02-14 20:50:02",
  "updated_at": "2025-07-16 19:03:31"
}

Documentation Index

Fetch the complete documentation index at: https://docs.thanks.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer token authentication using your thanks.io API key

Path Parameters

subAccountId
integer
required

ID of sub-account

Example:

56

Response

Successful Response

id
integer
Example:

1

user_id
integer
Example:

2

title
string
Example:

"My Sub Account"

return_name
string
Example:

"John Smith"

return_address
string
Example:

"123 Smith Street"

return_address2
string
Example:

"Apartment 2"

return_city
string
Example:

"Denver"

return_state
string
Example:

"CO"

return_postal_code
string
Example:

"12345"