Skip to main content
GET
/
v4
/
account
Get current account
curl --request GET \
  --url https://api.kit.com/v4/account \
  --header 'X-Kit-Api-Key: <api-key>'
require 'uri'
require 'net/http'

url = URI("https://api.kit.com/v4/account")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["X-Kit-Api-Key"] = '<api-key>'

response = http.request(request)
puts response.read_body
const options = {method: 'GET', headers: {'X-Kit-Api-Key': '<api-key>'}};

fetch('https://api.kit.com/v4/account', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://api.kit.com/v4/account"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("X-Kit-Api-Key", "<api-key>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.kit.com/v4/account",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Kit-Api-Key: <api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
import requests

url = "https://api.kit.com/v4/account"

headers = {"X-Kit-Api-Key": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
{
  "user": {
    "email": "test@kit.dev",
    "id": 29
  },
  "account": {
    "id": 29,
    "name": "Kit Greetings",
    "plan_type": "creator",
    "primary_email_address": "test@kit.dev",
    "created_at": "2023-02-17T11:43:55Z",
    "timezone": {
      "name": "America/New_York",
      "friendly_name": "Eastern Time (US & Canada)",
      "utc_offset": "-05:00"
    },
    "sending_addresses": [
      {
        "email_address": "joe29@ck.lol",
        "from_name": "Joe",
        "status": "pending",
        "is_default": true,
        "is_verified": false,
        "is_dmarc_configured": false
      }
    ],
    "plan": {
      "plan_type": "creator",
      "interval": "month",
      "subscriber_limit": 1000,
      "on_trial": false,
      "trial_lapse_date": null,
      "renews_at": "2023-03-17T11:43:55Z",
      "cancels_at": null
    }
  }
}
{
"errors": [
"The access token is invalid"
]
}

Authorizations

X-Kit-Api-Key
string
header
required

Authenticate API requests via an API Key

Response

Returns current account and user info

user
object
required
account
object
required