Skip to main content
GET
/
auth
/
api_keys
Go (SDK)
package main

import(
	"context"
	"os"
	latitudeshgosdk "github.com/latitudesh/latitudesh-go-sdk"
	"log"
)

func main() {
    ctx := context.Background()

    s := latitudeshgosdk.New(
        latitudeshgosdk.WithSecurity(os.Getenv("LATITUDESH_BEARER")),
    )

    res, err := s.APIKeys.List(ctx)
    if err != nil {
        log.Fatal(err)
    }
    if res.APIKey != nil {
        // handle response
    }
}
{
  "data": [
    {
      "id": "tok_6VE1Wd37dXnZJ",
      "type": "api_keys",
      "attributes": {
        "name": "North Moors",
        "token_last_slice": "763be",
        "api_version": "2023-06-01",
        "created_at": "2025-07-16T18:36:26+00:00",
        "updated_at": "2025-07-16T17:36:26+00:00",
        "last_used_at": null,
        "user": {
          "id": "user_NYNl38rzNzs4KXL96apwU3WJ5oX8",
          "email": "[email protected]"
        }
      }
    }
  ],
  "meta": {}
}

Authorizations

Authorization
string
header
required

Response

200 - application/vnd.api+json

Success

id
string<(?-mix:^[a-zA-Z]+_[a-zA-Z0-9]+$)>
type
enum<string>
Available options:
api_keys
attributes
object