Invitations
Overview
The Invitations API allows querying invitations sent by specific profiles and retrieving pending invitations for a given Ethereum address.
Endpoints
List Invitations Sent by a Profile
Description: Retrieves a list of invitations sent by a specific profile.
Authentication Required: No
Parameters
Request Body
invitedBy
integer
Yes
The profile ID of the sender
pagination
object
Yes
Pagination parameters
pagination.limit
integer
Yes
Maximum number of results to return
pagination.offset
integer
Yes
Number of results to skip
Responses
Success Response
Code: 200 OK
ok
boolean
Success status
data
object
Paginated response
data.limit
integer
Maximum number of results returned
data.offset
integer
Number of results skipped
data.total
integer
Total number of matching invitations
data.values
array
Array of invitation objects
data.values[].id
string
Invitation ID (format: ${senderProfileId}-${recipientAddress}
)
data.values[].senderProfileId
integer
Profile ID of the sender
data.values[].recipientAddress
string
Ethereum address of the recipient
data.values[].status
string
Status of the invitation: "INVITED", "ACCEPTED", or "ACCEPTED_OTHER_INVITATION"
data.values[].recipientScoreImpact
object
Impact on the recipient's score
data.values[].recipientScoreImpact.value
integer
Magnitude of the score impact
data.values[].recipientScoreImpact.impact
string
Type of impact: "POSITIVE", "NEGATIVE", or "NEUTRAL"
data.values[].senderScoreImpact
object
Impact on the sender's score
data.values[].senderScoreImpact.value
integer
Magnitude of the score impact
data.values[].senderScoreImpact.impact
string
Type of impact: "POSITIVE", "NEGATIVE", or "NEUTRAL"
data.values[].dateInvited
string
Date the invitation was sent (ISO 8601 format)
data.values[].dateAccepted
string
Date the invitation was accepted (ISO 8601 format), only present if accepted
Error Response
Code: 400 Bad Request
Example
Request
Get Pending Invitations for an Address
Description: Retrieves a list of pending invitations for a specific Ethereum address.
Authentication Required: No
Parameters
Path Parameters
address
string
Yes
Ethereum address to check for pending invitations
Responses
Success Response
Code: 200 OK
ok
boolean
Success status
data
array
Array of pending invitation objects
data[].id
integer
Profile ID of the sender
data[].impact
object
Score impact if the invitation is accepted
data[].impact.value
integer
Absolute value of the score change
data[].impact.relativeValue
integer
Relative value (positive or negative)
data[].impact.impact
string
Type of impact: "POSITIVE", "NEGATIVE", or "NEUTRAL"
data[].impact.adjustedRecipientScore
integer
The recipient's adjusted score if the invitation is accepted
Error Response
Code: 400 Bad Request
Example
Request
Notes
The response will be an empty array (
[]
) if there are no pending invitations for the address.Invitations are sorted by the potential score impact on the recipient in descending order.
Last updated