Fastly User API

Operations for managing user accounts including invitations and profiles.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).
Business capability
Identity & Access Management BC-620.20

Operations 6

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /current_user Get the profile of the signed-in user · Get the current user #
Ask an LLM
“What role and permissions does the user I'm authenticated as have?”
“Can I see my own profile details?”
Tell an agent
Show my own user profile.
Get the profile of the user I'm signed in as.
GET /user/{user_id} Get a user's profile · Get a user #
Ask an LLM
“How do I look up another user's profile by ID?”
“Can I see the role assigned to a specific user?”
Tell an agent
Get the profile of user {user_id}.
Show the name and role of user {user_id}.
PUT /user/{user_id} Update a user's profile · Update a user #
Ask an LLM
“How do I change a user's name or role?”
“Can I promote an existing user to a different role?”
Tell an agent
Change the name of user {user_id} to {name}.
Set the role of user {user_id} to {role}.
DELETE /user/{user_id} Remove a user from the account · Delete a user #
Ask an LLM
“How do I remove a user from my customer account?”
“Can I delete a user who left the team?”
Tell an agent destructive · confirm first
Delete user {user_id}.
Remove user {user_id} from the account.
GET /customer/{customer_id}/users List users on a customer account · List users for a customer #
Ask an LLM
“Who are all the users on my customer account?”
“Can I see every user linked to a customer ID?”
Tell an agent
List all users on customer {customer_id}.
Show the user IDs and roles for customer {customer_id}.
POST /invitations Invite a user to the account · Create a user invitation #
Ask an LLM
“How do I invite someone to join my customer account?”
“What happens to the invited user after I send an invitation?”
Tell an agent
Create an invitation for {data}.
Invite a new user to customer account {data} with an email link.

Documentation

📖
Documentation
https://www.fastly.com/documentation/reference/api/services/
📖
Documentation
https://www.fastly.com/documentation/reference/api/purging/
📖
Documentation
https://www.fastly.com/documentation/reference/api/logging/
📖
Documentation
https://www.fastly.com/documentation/reference/api/metrics-stats/
📖
Documentation
https://www.fastly.com/documentation/reference/api/tls/
📖
Documentation
https://www.fastly.com/documentation/reference/api/vcl-services/
📖
Documentation
https://www.fastly.com/documentation/reference/api/account/
📖
Documentation
https://www.fastly.com/documentation/reference/api/auth-tokens/
📖
Documentation
https://www.fastly.com/documentation/reference/api/acls/
📖
Documentation
https://www.fastly.com/documentation/reference/api/dictionaries/
📖
Documentation
https://www.fastly.com/documentation/guides/compute/
📖
Documentation
https://www.fastly.com/documentation/reference/api/ngwaf/
📖
Documentation
https://www.fastly.com/documentation/reference/api/domain-management/
📖
Documentation
https://www.fastly.com/documentation/reference/api/products/
📖
Documentation
https://www.fastly.com/documentation/reference/api/observability/
📖
Documentation
https://www.fastly.com/documentation/reference/api/api-security/
📖
Documentation
https://www.fastly.com/documentation/reference/api/ddos-protection/
📖
Documentation
https://www.fastly.com/documentation/reference/api/client-side-protection/
📖
Documentation
https://www.fastly.com/documentation/reference/api/publishing/
📖
Documentation
https://www.fastly.com/documentation/reference/api/load-balancing/
📖
Documentation
https://www.fastly.com/documentation/reference/api/utils/
📖
Documentation
https://www.fastly.com/products/ai
📖
Documentation
https://www.fastly.com/products/object-storage

Specifications

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/fastly:fastly-user-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

fastly-user-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Fastly Account User API
  description: The Fastly Account API provides endpoints for managing customer accounts, users, and identity and access management (IAM) resources. Developers can programmatically manage user invitations, roles, permissions, and service groups to control access to Fastly resources. The API supports retrieving and updating customer information, managing user profiles, and configuring organizational settings for enterprise accounts.
  version: '1.0'
  contact:
    name: Fastly Support
    url: https://support.fastly.com
  termsOfService: https://www.fastly.com/terms
servers:
- url: https://api.fastly.com
  description: Fastly API Production Server
security:
- apiKeyAuth: []
tags:
- name: User
  description: Operations for managing user accounts including invitations and profiles.
paths:
  /current_user:
    get:
      operationId: getCurrentUser
      summary: Get the current user
      description: Retrieves the profile information for the authenticated user.
      tags:
      - User
      responses:
        '200':
          description: Successfully retrieved the user profile.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/User'
        '401':
          description: Unauthorized. The API token is missing or invalid.
  /user/{user_id}:
    get:
      operationId: getUser
      summary: Get a user
      description: Retrieves the profile information for a specific user.
      tags:
      - User
      parameters:
      - name: user_id
        in: path
        required: true
        description: The alphanumeric string identifying the user.
        schema:
          type: string
      responses:
        '200':
          description: Successfully retrieved the user profile.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/User'
        '401':
          description: Unauthorized. The API token is missing or invalid.
        '404':
          description: User not found.
    put:
      operationId: updateUser
      summary: Update a user
      description: Updates the profile information for a specific user.
      tags:
      - User
      parameters:
      - name: user_id
        in: path
        required: true
        description: The alphanumeric string identifying the user.
        schema:
          type: string
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: The name of the user.
                role:
                  type: string
                  description: The role assigned to the user.
                  enum:
                  - user
                  - billing
                  - engineer
                  - superuser
      responses:
        '200':
          description: Successfully updated the user profile.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/User'
        '401':
          description: Unauthorized. The API token is missing or invalid.
        '404':
          description: User not found.
    delete:
      operationId: deleteUser
      summary: Delete a user
      description: Removes a user from the customer account.
      tags:
      - User
      parameters:
      - name: user_id
        in: path
        required: true
        description: The alphanumeric string identifying the user.
        schema:
          type: string
      responses:
        '200':
          description: Successfully deleted the user.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    description: Confirmation status of the deletion.
        '401':
          description: Unauthorized. The API token is missing or invalid.
        '404':
          description: User not found.
  /customer/{customer_id}/users:
    get:
      operationId: listCustomerUsers
      summary: List users for a customer
      description: Retrieves a list of all users associated with a specific customer account.
      tags:
      - User
      parameters:
      - name: customer_id
        in: path
        required: true
        description: The alphanumeric string identifying the customer.
        schema:
          type: string
      responses:
        '200':
          description: Successfully retrieved the list of users.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/User'
        '401':
          description: Unauthorized. The API token is missing or invalid.
        '404':
          description: Customer not found.
  /invitations:
    post:
      operationId: createInvitation
      summary: Create a user invitation
      description: Creates an invitation to join the customer account. The invited user will receive an email with a link to accept the invitation.
      tags:
      - User
      requestBody:
        required: true
        content:
          application/vnd.api+json:
            schema:
              type: object
              properties:
                data:
                  type: object
                  properties:
                    type:
                      type: string
                      enum:
                      - invitation
                    attributes:
                      type: object
                      properties:
                        email:
                          type: string
                          format: email
                          description: The email address of the user to invite.
                        role:
                          type: string
                          description: The role to assign to the invited user.
                          enum:
                          - user
                          - billing
                          - engineer
                          - superuser
      responses:
        '201':
          description: Successfully created the invitation.
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/Invitation'
        '400':
          description: Bad request. Missing or invalid parameters.
        '401':
          description: Unauthorized. The API token is missing or invalid.
components:
  schemas:
    User:
      type: object
      description: A user within a Fastly customer account.
      properties:
        id:
          type: string
          description: The alphanumeric string identifying the user.
        login:
          type: string
          format: email
          description: The email address of the user, used as the login.
        name:
          type: string
          description: The name of the user.
        role:
          type: string
          description: The role assigned to the user.
          enum:
          - user
          - billing
          - engineer
          - superuser
        customer_id:
          type: string
          description: The alphanumeric string identifying the customer the user belongs to.
        email_hash:
          type: string
          description: The hash of the user's email for Gravatar integration.
        two_factor_auth_enabled:
          type: boolean
          description: Whether two-factor authentication is enabled for the user.
        limit_services:
          type: boolean
          description: Whether the user's access is limited to specific services.
        locked:
          type: boolean
          description: Whether the user account is locked.
        require_new_password:
          type: boolean
          description: Whether the user must set a new password on next login.
        created_at:
          type: string
          format: date-time
          description: The date and time the user was created.
        updated_at:
          type: string
          format: date-time
          description: The date and time the user was last updated.
        deleted_at:
          type: string
          format: date-time
          nullable: true
          description: The date and time the user was deleted.
    Invitation:
      type: object
      description: An invitation to join a Fastly customer account.
      properties:
        id:
          type: string
          description: The alphanumeric string identifying the invitation.
        type:
          type: string
          description: The resource type.
          enum:
          - invitation
        attributes:
          type: object
          properties:
            email:
              type: string
              format: email
              description: The email address of the invited user.
            role:
              type: string
              description: The role assigned to the invited user.
            status:
              type: string
              description: The current status of the invitation.
              enum:
              - pending
              - accepted
              - expired
            created_at:
              type: string
              format: date-time
              description: The date and time the invitation was created.
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: Fastly-Key
      description: API token used to authenticate requests to the Fastly API.
externalDocs:
  description: Fastly Account API Documentation
  url: https://www.fastly.com/documentation/reference/api/account/