Retrieve a share link
client.ShareLinks.Get(ctx, id) (*ShareLinkGetResponse, error)
GET/compute/v1/share-links/{id}
Retrieve metadata for a share link owned by the authenticated organization. Archived and expired links remain retrievable.
ReturnsExpand Collapse
type ShareLinkGetResponse struct{…}
type ShareLinkGetResponse struct{…}
ID string
Share link ID. This value is the bearer credential used to access the linked resources — treat it as a secret.
AccessParameters ShareLinkGetResponseAccessParametersUnionAccess-control parameters for the share link. Discriminated by access_mode: public requires no other fields; email requires a non-empty allowed_emails list.
AccessParameters ShareLinkGetResponseAccessParametersUnion
Access-control parameters for the share link. Discriminated by access_mode: public requires no other fields; email requires a non-empty allowed_emails list.
Retrieve a share link
package main
import (
"context"
"fmt"
"github.com/boltz-bio/boltz-api-go"
"github.com/boltz-bio/boltz-api-go/option"
)
func main() {
client := boltzapi.NewClient(
option.WithAPIKey("My API Key"),
)
shareLink, err := client.ShareLinks.Get(context.TODO(), "shr_qoEFr2BlPTBLuM5BinaC8x7iVPP_AwppEOmlxQjJ-eo")
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", shareLink.ID)
}
{
"id": "shr_qoEFr2BlPTBLuM5BinaC8x7iVPP_AwppEOmlxQjJ-eo",
"access_parameters": {
"access_mode": "public"
},
"archived_at": "2019-12-27T18:11:19.117Z",
"created_at": "2019-12-27T18:11:19.117Z",
"expires_at": "2019-12-27T18:11:19.117Z",
"pipeline_ids": [
"string"
],
"prediction_ids": [
"string"
],
"workspace_id": "workspace_id",
"url": "https://lab.boltz.bio/share/shr_qoEFr2BlPTBLuM5BinaC8x7iVPP_AwppEOmlxQjJ-eo"
}Returns Examples
{
"id": "shr_qoEFr2BlPTBLuM5BinaC8x7iVPP_AwppEOmlxQjJ-eo",
"access_parameters": {
"access_mode": "public"
},
"archived_at": "2019-12-27T18:11:19.117Z",
"created_at": "2019-12-27T18:11:19.117Z",
"expires_at": "2019-12-27T18:11:19.117Z",
"pipeline_ids": [
"string"
],
"prediction_ids": [
"string"
],
"workspace_id": "workspace_id",
"url": "https://lab.boltz.bio/share/shr_qoEFr2BlPTBLuM5BinaC8x7iVPP_AwppEOmlxQjJ-eo"
}