diff --git a/Source/StrongGrid.IntegrationTests/Tests/Teammates.cs b/Source/StrongGrid.IntegrationTests/Tests/Teammates.cs
index 3e85df8f..aeff69c9 100644
--- a/Source/StrongGrid.IntegrationTests/Tests/Teammates.cs
+++ b/Source/StrongGrid.IntegrationTests/Tests/Teammates.cs
@@ -13,7 +13,7 @@ public async Task RunAsync(IBaseClient client, TextWriter log, CancellationToken
await log.WriteLineAsync("\n***** TEAMMATES *****\n").ConfigureAwait(false);
// GET ALL THE PENDING INVITATIONS
- var pendingInvitation = await client.Teammates.GetAllPendingInvitationsAsync(cancellationToken).ConfigureAwait(false);
+ var pendingInvitation = await client.Teammates.GetAllPendingInvitationsAsync(50, 0, cancellationToken).ConfigureAwait(false);
await log.WriteLineAsync($"There are {pendingInvitation.Length} pending invitations").ConfigureAwait(false);
// GET ALL THE TEAMMATES
diff --git a/Source/StrongGrid.UnitTests/Resources/TeammatesTests.cs b/Source/StrongGrid.UnitTests/Resources/TeammatesTests.cs
index 2c6a1b3b..6d35bbce 100644
--- a/Source/StrongGrid.UnitTests/Resources/TeammatesTests.cs
+++ b/Source/StrongGrid.UnitTests/Resources/TeammatesTests.cs
@@ -241,7 +241,7 @@ public async Task GetAllPendingInvitationsAsync()
var teammates = new Teammates(client);
// Act
- var result = await teammates.GetAllPendingInvitationsAsync(CancellationToken.None).ConfigureAwait(false);
+ var result = await teammates.GetAllPendingInvitationsAsync(50, 0, CancellationToken.None).ConfigureAwait(false);
// Assert
mockHttp.VerifyNoOutstandingExpectation();
diff --git a/Source/StrongGrid/Resources/ITeammates.cs b/Source/StrongGrid/Resources/ITeammates.cs
index 2b2a83f9..c5479d68 100644
--- a/Source/StrongGrid/Resources/ITeammates.cs
+++ b/Source/StrongGrid/Resources/ITeammates.cs
@@ -1,4 +1,4 @@
-using StrongGrid.Models;
+using StrongGrid.Models;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
@@ -62,13 +62,15 @@ public interface ITeammates
///
/// Retrieve a list of all pending teammate invitations.
///
+ /// The limit.
+ /// The offset.
/// The cancellation token.
/// An array of .
///
/// Each teammate invitation is valid for 7 days.
/// Users may resend the invite to refresh the expiration date.
///
- Task GetAllPendingInvitationsAsync(CancellationToken cancellationToken = default);
+ Task GetAllPendingInvitationsAsync(int limit = 10, int offset = 0, CancellationToken cancellationToken = default);
///
/// Delete a pending teammate invite.
diff --git a/Source/StrongGrid/Resources/Teammates.cs b/Source/StrongGrid/Resources/Teammates.cs
index 7027715e..59f7e684 100644
--- a/Source/StrongGrid/Resources/Teammates.cs
+++ b/Source/StrongGrid/Resources/Teammates.cs
@@ -1,7 +1,6 @@
-using Newtonsoft.Json.Linq;
+using Newtonsoft.Json.Linq;
using Pathoschild.Http.Client;
using StrongGrid.Models;
-using StrongGrid.Utilities;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
@@ -105,16 +104,20 @@ public Task ResendInvitationAsync(string token, CancellationToken cancellationTo
///
/// Retrieve a list of all pending teammate invitations.
///
+ /// The limit.
+ /// The offset.
/// The cancellation token.
/// An array of .
///
/// Each teammate invitation is valid for 7 days.
/// Users may resend the invite to refresh the expiration date.
///
- public Task GetAllPendingInvitationsAsync(CancellationToken cancellationToken = default)
+ public Task GetAllPendingInvitationsAsync(int limit = 10, int offset = 0, CancellationToken cancellationToken = default)
{
return _client
.GetAsync($"{_endpoint}/pending")
+ .WithArgument("limit", limit)
+ .WithArgument("offset", offset)
.WithCancellationToken(cancellationToken)
.AsObject("result");
}