Go API 레퍼런스
메시지의 토큰 수 계산
client.Messages.CountTokens(ctx, params) (*MessageTokensCount, error)POST/v1/messages/count_tokens
메시지의 토큰 수를 계산합니다.
파일 메타데이터 조회
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 키와 연결된 조직에 대한 정보를 조회합니다.