# friendship_offer_accept

Accepts or rejects a friendship offer sent by another avatar.

```csharp
// See "LSL Helper Functions" page for this function
smartbotsAPI("friendship_offer_accept", [
  "avatar_uuid", event.avatar_uuid,
  "session_id", event.session_id,
  "accept", 1
]);
```

See [offer_friendship](/doc/e3420957-274c-4a74-93d3-aced80a0d975) HTTP callback for event details.

```snippet http-api-variables-OmJyUigTgO
```

```snippet http-api-input-basic-parameters-5FcVlaJbq0 action="friendship_offer_accept"
```

```snippet http-api-input-q5yvAagqsZ
avatar_uuid | yes | The UUID of the avatar sending the friendship offer
session_id  | yes | The session UUID received from the event
accept      | yes | Set to `1`to accept the invitation<br>Leave empty or set to`0` to reject the offer
```

```snippet http-api-output-JAwUcmg7i7
```