Quick Installation

Get started with Hailey HR in Go in under a minute

Terminal
go get github.com/apideck-libraries/sdk-go
package main

import (
    "context"
    "fmt"
    "os"
    sdkgo "github.com/apideck-libraries/sdk-go"
    "github.com/apideck-libraries/sdk-go/models/operations"
)

func main() {
    ctx := context.Background()
    s := sdkgo.New(
        sdkgo.WithSecurity(os.Getenv("APIDECK_API_KEY")),
        sdkgo.WithAppID("YOUR_APP_ID"),
        sdkgo.WithConsumerID("user-123"),
    )

    // Connect to Hailey HR
    _, err := s.Vault.Connections.List(ctx,
        sdkgo.Pointer("hris"),
        sdkgo.Pointer(true),
    )

    // List data from Hailey HR
    contacts, err := s.Hris.Contacts.List(ctx, operations.HrisContactsAllRequest{
        ServiceID: sdkgo.Pointer("haileyhr"),
    })

    if err != nil {
        panic(err)
    }

    fmt.Printf("%+v\n", contacts)
}

Why use the Go SDK?

Type Safety

Full type definitions for Go. Catch errors at compile time, not runtime.

Auto-generated

SDK is auto-generated from our OpenAPI spec, always up-to-date with the latest API.

Error Handling

Built-in error types and retry logic. Handle rate limits and errors gracefully.

Pagination

Automatic pagination handling. Iterate through large datasets effortlessly.

Authentication

OAuth, API keys, and consumer tokens handled automatically.

Documentation

Comprehensive docs with examples for every endpoint and method.

Hailey HR available in all SDKs

Choose your preferred language

API Resources

Hailey HR resources available

All these Hailey HR endpoints are accessible via the Go SDK

Launch accounting integrations in weeks, not months

Get started for free