# Capsule > Represents a spawn capsule with a unique ID, world location, and optional team assignment. `gg.lode.observerapi.api.data` --- ## Signature ```java public record Capsule(UUID uniqueId, Location location, @Nullable String teamId) ``` --- ## Methods ### uniqueId ```java public UUID uniqueId() ``` **Returns:** `UUID` - the capsule's unique identifier --- ### location ```java public Location location() ``` **Returns:** `Location` - the capsule's world location --- ### teamId ```java public @Nullable String teamId() ``` **Returns:** `@Nullable String` - the team ID bound to this capsule, or `null` if unbound. Requires Lead. --- ## Related Pages - [[CapsuleType]] - [[ICapsuleManager]] - [[PlayerAssignedToCapsuleEvent]] - [[PlayerSwapCapsulesEvent]]