Class TokenRequest

java.lang.Object
ai.vectros.resources.auth.requests.TokenRequest

public final class TokenRequest extends Object
  • Method Details

    • getUserId

      public Optional<String> getUserId()
      Returns:
      The Vectros user ID of the end user this token is minted for. This is the UUID returned when you created the user via POST /v1/users. Optional — omit it for service-to-service tokens that have no specific user context. If provided, it must reference a real user in your account. Use GET /v1/users?externalId={yourId} to resolve your own system's user ID to the Vectros user ID.
    • getScope

      public ScopeRequest getScope()
    • getExpiresInSeconds

      public Optional<Integer> getExpiresInSeconds()
      Returns:
      How long the token remains valid, in seconds. Maximum 86400 (24 hours); defaults to 3600 (1 hour).
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • builder

      public static TokenRequest.ScopeStage builder()