Quick Start

Your API requests are authenticated using API tokens. Any request that doesn't include an API token will return an error.

You can generate an API token from your Account at any time: https://packetengine.co.uk/user/api-tokens

Install the library

The best way to interact with our API is to use one of our official libraries:

# Install via go
go mod init
go get github.com/PacketEngine/packetengine

Make your first request

To make your first request, send an authenticated request to the subdomains endpoint. This will fetch all the subdomains of a domain.

Retrieve all subdomains associated with a domain

GET https://api.packetengine.co.uk/v1/domains/{domain}/subdomains

Path Parameters

NameTypeDescription

domain*

String

The domain to fetch subdomains for

Headers

NameTypeDescription

Accept

String

application/json

Accept

String

text/plain

{
    "name"="Wilson",
    "owner": {
        "id": "sha7891bikojbkreuy",
        "name": "Samuel Passet",
    "species": "Dog",}
    "breed": "Golden Retriever",
}

Take a look at how you might call this method using our official libraries, or via curl:

curl -s https://api.packetengine.co.uk/v1/domains/uberinternal.com/subdomains
    -H 'Accept: text/plain'
    -H "Authorization: Bearer Your-API-Token" 

Last updated