Interface TeamService
-
- All Implemented Interfaces:
public interface TeamServiceOperations for the team bound to the API key or OAuth connection.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceTeamService.WithRawResponse
-
Method Summary
Modifier and Type Method Description abstract TeamService.WithRawResponsewithRawResponse()abstract TeamServicewithOptions(Consumer<ClientOptions.Builder> modifier)Teamretrieve()Retrieves the team bound to the API key or OAuth connection. abstract Teamretrieve(TeamRetrieveParams params, RequestOptions requestOptions)Teamupdate(TeamUpdateParams params)Updates the name of the team bound to the API key or OAuth connection. abstract Teamupdate(TeamUpdateParams params, RequestOptions requestOptions)RotateApiKeyResponserotateApiKey()Generates a new API key and makes the key used on this request stop working when rotation succeeds. abstract RotateApiKeyResponserotateApiKey(TeamRotateApiKeyParams params, RequestOptions requestOptions)TeamrequestVerification()Requests GrowSurf to verify the bound team (required before a program can email its participants). abstract TeamrequestVerification(TeamRequestVerificationParams params, RequestOptions requestOptions)VerificationEmailResponseresendOwnerVerificationEmail()Resends the email-verification message to the bound team's owner. abstract VerificationEmailResponseresendOwnerVerificationEmail(TeamResendOwnerVerificationEmailParams params, RequestOptions requestOptions)-
-
Method Detail
-
withRawResponse
abstract TeamService.WithRawResponse withRawResponse()
-
withOptions
abstract TeamService withOptions(Consumer<ClientOptions.Builder> modifier)
-
retrieve
Team retrieve()
Retrieves the team bound to the API key or OAuth connection.
verificationStatusisVERIFIEDonce GrowSurf has verified the team, which is required before a program can send participant emails.
-
retrieve
abstract Team retrieve(TeamRetrieveParams params, RequestOptions requestOptions)
-
update
Team update(TeamUpdateParams params)
Updates the name of the team bound to the API key or OAuth connection. Any other property is rejected with a
400. Personal profiles, billing, and team ownership are not editable here.
-
update
abstract Team update(TeamUpdateParams params, RequestOptions requestOptions)
-
rotateApiKey
RotateApiKeyResponse rotateApiKey()
Generates a new API key and makes the key used on this request stop working when rotation succeeds. Send a unique, random
Idempotency-Key. If the response is interrupted, immediately retry with the original API key and the sameIdempotency-Keyto receive the same new key. Update every integration that used the old key. The team owner is notified by email whenever the key is rotated. GrowSurf SDKs generate the idempotency key automatically. This endpoint accepts an API key withapi_key:rotate. If this scope is unavailable, rotate the key in the authenticated dashboard instead. This operation is available only through the REST API or a GrowSurf API SDK, not through MCP.
-
rotateApiKey
abstract RotateApiKeyResponse rotateApiKey(TeamRotateApiKeyParams params, RequestOptions requestOptions)
-
requestVerification
Team requestVerification()
Requests GrowSurf to verify the bound team (required before a program can email its participants). Idempotent — calling it again while a request is pending does not create a duplicate. Returns the team with its updated
verificationStatus.
-
requestVerification
abstract Team requestVerification(TeamRequestVerificationParams params, RequestOptions requestOptions)
-
resendOwnerVerificationEmail
VerificationEmailResponse resendOwnerVerificationEmail()
Resends the email-verification message to the bound team's owner. The response never reveals the owner's email address. A
200withstatus: SENTis returned only when an email was actually dispatched. Returns400if the email is already verified, and429if a verification email was sent too recently — wait a moment, then retry.
-
resendOwnerVerificationEmail
abstract VerificationEmailResponse resendOwnerVerificationEmail(TeamResendOwnerVerificationEmailParams params, RequestOptions requestOptions)
-
-
-
-