TypeScript API 레퍼런스
메시지 생성
client.messages.create(params, options?): Message | Stream<RawMessageStreamEvent>POST/v1/messages
텍스트 및/또는 이미지 콘텐츠가 포함된 구조화된 입력 메시지 목록을 전송하면 모델이 대화의 다음 메시지를 생성합니다.
메시지의 토큰 수 계산
client.messages.countTokens(params, options?): MessageTokensCountPOST/v1/messages/count_tokens
메시지의 토큰 수를 계산합니다.
파일 메타데이터 조회
client.files.retrieveMetadata(fileID, params?, options?): FileMetadataGET/v1/files/{file_id}
사용자 프로필 목록 조회
client.userProfiles.list(params?, options?): PageCursor<UserProfile>GET/v1/user_profiles
사용자 프로필 조회
client.userProfiles.retrieve(userProfileID, params?, options?): UserProfileGET/v1/user_profiles/{user_profile_id}
사용자 프로필 업데이트
client.userProfiles.update(userProfileID, params, options?): UserProfilePOST/v1/user_profiles/{user_profile_id}
사용자 프로필 삭제
client.userProfiles.delete(userProfileID, params?, options?): DeletedUserProfileDELETE/v1/user_profiles/{user_profile_id}
현재 조직 조회
client.organization.retrieve(options?): OrganizationInfoGET/v1/organizations/me
인증된 API 키와 연결된 조직에 대한 정보를 조회합니다.