Skip to main content
DELETE
/
auth
/
api_keys
/
{api_key_id}
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.Delete(ctx, "tok_x1ZJrdx5qg4LV")
    if err != nil {
        log.Fatal(err)
    }
    if res != nil {
        // handle response
    }
}
{
  "meta": {}
}

Authorizations

Authorization
string
header
required

Path Parameters

api_key_id
string
required

Response

200 - application/vnd.api+json

Success

The response is of type file.