SocialBu Advocacy API

Manage employee advocacy enrollment separately from workspace membership.

GitHub OpenAPI

Operations 7

GET /teams/{teamId}/advocates List a team's advocates #
POST /teams/{teamId}/advocates Add a pending advocate #
POST /teams/{teamId}/advocates/invite Invite an advocate by email #
DELETE /teams/{teamId}/advocates/{userId} Remove an advocate #
GET /advocacy/teams List your advocacy enrollments #
POST /advocacy/teams/{teamId}/accept Accept your advocacy enrollment #
DELETE /advocacy/teams/{teamId} Decline or leave your advocacy enrollment #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/socialbu-com:socialbu-com-advocacy-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

socialbu-com-advocacy-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: 'This is documentation for the SocialBu API.


    Base URL: `https://socialbu.com/api/v1`


    Pass your API token from the SocialBu dashboard in the `Authorization` header:

    `Authorization: Bearer YOUR_API_TOKEN`


    You can get your API token from **Settings** in your SocialBu dashboard. You can also generate one programmatically by calling `POST /auth/get_token` with your email and password.


    Example GET request: `GET https://socialbu.com/api/v1/accounts`'
  version: 1.0.0
  title: SocialBu Advocacy API
  termsOfService: https://socialbu.com/about/terms
  contact:
    email: support@socialbu.com
servers:
- description: SocialBu API
  url: https://socialbu.com/api/v1
security:
- bearerAuth: []
tags:
- name: Advocacy
  description: Manage employee advocacy enrollment separately from workspace membership.
paths:
  /teams/{teamId}/advocates:
    parameters:
    - name: teamId
      in: path
      required: true
      schema:
        type: integer
    get:
      tags:
      - Advocacy
      summary: List a team's advocates
      operationId: listTeamAdvocates
      description: Only the team owner can list pending and accepted advocates. Requires a verified account. Returns 50 enrollments per page, ordered by user ID. User email addresses and other account details are not returned.
      parameters:
      - name: page
        in: query
        schema:
          type: integer
          minimum: 1
      responses:
        '200':
          description: Paginated advocate enrollments.
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/AdvocacyPagination'
                - type: object
                  properties:
                    data:
                      type: array
                      items:
                        $ref: '#/components/schemas/AdvocateEnrollment'
        '401':
          description: Authentication required.
        '403':
          description: Email verification required.
        '404':
          description: Team does not exist or is not owned by the current user.
    post:
      tags:
      - Advocacy
      summary: Add a pending advocate
      operationId: addTeamAdvocate
      description: Only the verified team owner can enroll an existing, non-deleted user. Enrollment starts pending and grants no workspace permissions or team-seat usage. Repeating the request preserves an existing enrollment, including its acceptance. This endpoint does not create users or send invitations.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - user_id
              properties:
                user_id:
                  type: integer
      responses:
        '204':
          description: Enrollment created or already present.
        '401':
          description: Authentication required.
        '403':
          description: Email verification required.
        '404':
          description: Team does not exist or is not owned by the current user.
        '422':
          description: Invalid user ID, or the user does not exist or is deleted.
  /teams/{teamId}/advocates/invite:
    post:
      tags:
      - Advocacy
      summary: Invite an advocate by email
      operationId: inviteTeamAdvocate
      description: Only the verified team owner can invite advocates. Reuses an existing user or creates an unverified user with no password, then enrolls them as pending and queues an invitation email. Repeating the request resends the invitation without duplicating enrollment. Accepted enrollments are preserved and receive no email. The signed email link expires after seven days; new users verify their email and set a password before accepting. Existing users sign in normally. Does not grant workspace membership or consume a team member seat. Limited to three requests per minute per owner across teams. Use the existing remove-advocate endpoint to cancel an invitation.
      parameters:
      - name: teamId
        in: path
        required: true
        schema:
          type: integer
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - email
              properties:
                email:
                  type: string
                  format: email
                  maxLength: 191
      responses:
        '204':
          description: Invitation queued, or the advocate has already accepted.
        '401':
          description: Authentication required.
        '403':
          description: Email verification required.
        '404':
          description: Team does not exist or is not owned by the current user.
        '422':
          description: Invalid or disallowed email address, or the user is deleted.
        '429':
          description: Invitation rate limit exceeded.
  /teams/{teamId}/advocates/{userId}:
    delete:
      tags:
      - Advocacy
      summary: Remove an advocate
      operationId: removeTeamAdvocate
      description: Only the verified team owner can remove pending or accepted enrollment. Repeated removals succeed. Workspace membership and enrollment in other teams are preserved.
      parameters:
      - name: teamId
        in: path
        required: true
        schema:
          type: integer
      - name: userId
        in: path
        required: true
        schema:
          type: integer
      responses:
        '204':
          description: Enrollment removed or already absent.
        '401':
          description: Authentication required.
        '403':
          description: Email verification required.
        '404':
          description: Team does not exist or is not owned by the current user.
  /advocacy/teams:
    get:
      tags:
      - Advocacy
      summary: List your advocacy enrollments
      operationId: listMyAdvocacyTeams
      description: Returns only the verified current user's pending and accepted enrollments, with 50 teams per page ordered by team ID. Team workspace settings, accounts, and other members are not returned.
      parameters:
      - name: page
        in: query
        schema:
          type: integer
          minimum: 1
      responses:
        '200':
          description: Paginated advocacy teams.
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/AdvocacyPagination'
                - type: object
                  properties:
                    data:
                      type: array
                      items:
                        $ref: '#/components/schemas/AdvocacyTeam'
        '401':
          description: Authentication required.
        '403':
          description: Email verification required.
  /advocacy/teams/{teamId}/accept:
    post:
      tags:
      - Advocacy
      summary: Accept your advocacy enrollment
      operationId: acceptAdvocacyEnrollment
      description: Accepts only the verified current user's existing enrollment. Repeated acceptance succeeds. It cannot enroll a user, restore removed enrollment, accept for another user, or grant workspace access.
      parameters:
      - name: teamId
        in: path
        required: true
        schema:
          type: integer
      responses:
        '204':
          description: Enrollment accepted or already accepted.
        '401':
          description: Authentication required.
        '403':
          description: Email verification required.
        '404':
          description: No enrollment for the current user in this team.
  /advocacy/teams/{teamId}:
    delete:
      tags:
      - Advocacy
      summary: Decline or leave your advocacy enrollment
      operationId: leaveAdvocacyTeam
      description: Removes only the verified current user's enrollment. This declines a pending enrollment or leaves an accepted one. Repeating the request succeeds. Workspace membership and other users' enrollments are preserved.
      parameters:
      - name: teamId
        in: path
        required: true
        schema:
          type: integer
      responses:
        '204':
          description: Enrollment removed or already absent.
        '401':
          description: Authentication required.
        '403':
          description: Email verification required.
components:
  schemas:
    AdvocacyPagination:
      type: object
      properties:
        current_page:
          type: integer
        last_page:
          type: integer
        per_page:
          type: integer
          enum:
          - 50
        total:
          type: integer
    AdvocateEnrollment:
      type: object
      required:
      - user_id
      - name
      - approved
      properties:
        user_id:
          type: integer
        name:
          type:
          - string
          - 'null'
        approved:
          type: boolean
          description: False until the advocate accepts their enrollment.
    AdvocacyTeam:
      type: object
      required:
      - team_id
      - name
      - approved
      properties:
        team_id:
          type: integer
        name:
          type: string
        approved:
          type: boolean
          description: False for a pending enrollment, true after acceptance.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: 'Send your SocialBu API token in the `Authorization` header:

        `Authorization: Bearer YOUR_API_TOKEN`

        '