Go API リファレンス
メッセージ内のトークンをカウント
client.Messages.CountTokens(ctx, params) (*MessageTokensCount, error)POST/v1/messages/count_tokens
メッセージ内のトークン数をカウントします。
ファイルをダウンロード
client.Files.Download(ctx, fileID, query) (*Response, error)GET/v1/files/{file_id}/content
ファイルのメタデータを取得
client.Files.GetMetadata(ctx, fileID, query) (*FileMetadata, error)GET/v1/files/{file_id}
ユーザープロファイルの一覧を取得
client.UserProfiles.List(ctx, params) (*PageCursor[UserProfile], error)GET/v1/user_profiles
ユーザープロファイルを取得
client.UserProfiles.Get(ctx, userProfileID, query) (*UserProfile, error)GET/v1/user_profiles/{user_profile_id}
ユーザープロファイルを更新
client.UserProfiles.Update(ctx, userProfileID, params) (*UserProfile, error)POST/v1/user_profiles/{user_profile_id}
ユーザープロファイルを削除
client.UserProfiles.Delete(ctx, userProfileID, body) (*DeletedUserProfile, error)DELETE/v1/user_profiles/{user_profile_id}
現在の組織を取得
client.Organization.Get(ctx) (*OrganizationInfo, error)GET/v1/organizations/me
認証されたAPIキーに関連付けられた組織に関する情報を取得します。