Members and Invitations

Authentication: JWT

These endpoints manage the people in an organization. Except where marked as unauthenticated, they accept a signed-in user's JWT only. API keys cannot manage members: workspace routes answer them with 403, and the accept endpoint with 401. For roles and the invitation flow, see Members and roles.

Path Parameters

  • Name
    :org
    Type
    string
    Description

    Organization key.

  • Name
    :project
    Type
    string
    Description

    Project key.

  • Name
    :user_key
    Type
    string
    Description

    Key of the member. me addresses the caller.

  • Name
    :invitation
    Type
    string
    Description

    Key of the invitation.

Conventions

  • Objects are named by their key. A user reference is {"key", "email", "full_name"}.
  • Errors carry message, error_code and detail. detail is null, or an object or list with more.
  • A caller who is neither the owner nor a member of the organization gets 403 with permission_denied. A caller whose role does not allow the action gets 403 with forbidden.
  • On a route that names a project, a caller with no access to that project gets 404 with project_not_found.
  • A workspace route answers an unauthenticated request with 401 authentication_failed and an unknown organization with 404 organization_not_found.
  • Preview, accept and sign-up answer excess requests with 429 throttled.
  • Responses from the invitation and token endpoints and from the member and project-member lists carry Cache-Control: no-store. A refusal of access to the organization or project (403 permission_denied, 404 organization_not_found or project_not_found) can arrive without it.
  • Timestamps are ISO 8601 with a timezone.

Invitation Object

  • Name
    key
    Type
    string
    Description

    Invitation identifier.

  • Name
    email
    Type
    string
    Description

    Invited email, lowercased.

  • Name
    org_role
    Type
    string
    Description

    admin or member.

  • Name
    project
    Type
    object | null
    Description

    The project the invitation grants access to, as {"key", "name"}. null for an organization-only invitation.

  • Name
    project_role
    Type
    string | null
    Description

    admin, member or null.

  • Name
    environment_roles
    Type
    array
    Description

    Objects with environment and role keys.

  • Name
    status
    Type
    string
    Description

    pending, accepted, revoked, expired or declined. A pending invitation past expires_at is reported as expired.

  • Name
    invited_by
    Type
    object
    Description

    User reference of the inviter.

  • Name
    created_at
    Type
    datetime
    Description

    ISO 8601 timestamp.

  • Name
    expires_at
    Type
    datetime
    Description

    ISO 8601 timestamp. An invitation expires 7 days after it is created or resent.

  • Name
    last_sent_at
    Type
    datetime | null
    Description

    When the email was last sent. null until an email has been sent.

  • Name
    send_count
    Type
    integer
    Description

    Sends attempted, the first one included.

  • Name
    accepted_by
    Type
    object | null
    Description

    User reference of the person who accepted.

  • Name
    accepted_at
    Type
    datetime | null
    Description

    ISO 8601 timestamp.

Create and resend return {"invitation": {...}, "email_sent": true}. email_sent is false when the email could not be sent; the invitation exists and can be resent.

An organization holds at most 50 pending invitations. An email has at most one pending invitation per organization.

Member Object

  • Name
    user
    Type
    object
    Description

    User reference.

  • Name
    role
    Type
    string
    Description

    owner, admin or member.

  • Name
    is_owner
    Type
    boolean
    Description

    true for the owner.

  • Name
    joined_at
    Type
    datetime
    Description

    When the person joined. For the owner, when the organization was created.

  • Name
    projects
    Type
    array
    Description

    Explicit project access: objects with key, name, project_admin and environment_roles. Each environment role has environment, role and role_name (null when the role was deleted). The owner and admins reach every project without entries.

Invitations and membership changes are recorded as global events with entity types invitation and membership: invitation created, resent, revoked, declined and accepted; role changed; member removed; project access granted and removed.

Environment Permissions

GET /v1/:env/permissions/me/ returns the caller's effective permissions in the environment. Its environment block carries two answers for the caller:

  • deletable is true when the caller can delete the environment: the environment is unprotected and the caller is the owner, an organization admin or the project's admin.
  • protection holds level, the environment's current level, and settable_levels, the levels the caller may set, from none to org_owner.

GETapi.foxnose.net/organizations/:org/me/

Get My Access

Returns the caller's organization role, capabilities and projects. Available to any member. role is owner, admin or member; a project admin's organization role is member. projects lists every project the caller can open: all of them for the owner and admins, otherwise the projects they administer (admin) and those where an environment role of theirs is in force (member).

CapabilityOwnerAdminMember
manage_membersyesyesno
manage_billingyesnono
view_billingyesyesno
create_projectsyesyesno
delete_organizationyesnono
view_audityesyesno

Success Response: 200 OK

Errors

  • Name
    401 Unauthorized
    Description
    • authentication_failed - authentication credentials were not provided or are invalid
  • Name
    403 Forbidden
    Description
    • permission_denied - the caller is not a member of the organization, or authenticated with an API key
  • Name
    404 Not Found
    Description
    • organization_not_found - the organization does not exist

Request

GET
/organizations/:org/me/
curl https://api.foxnose.net/organizations/dl55w3ds/me/ \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiI..."

Response

{
    "organization": {"key": "dl55w3ds", "name": "Acme"},
    "user": {"key": "9k2mxq4t", "email": "ada@example.com", "full_name": "Ada Lovelace"},
    "role": "admin",
    "capabilities": {
        "manage_members": true,
        "manage_billing": false,
        "view_billing": true,
        "create_projects": true,
        "delete_organization": false,
        "view_audit": true
    },
    "projects": [
        {"key": "d7hazs1x", "name": "Website", "role": "admin"}
    ]
}

GETapi.foxnose.net/organizations/:org/members/

List Members

Lists the owner first, then the members in joining order, as {"results": [...]} of member objects. Owner and admins only.

Success Response: 200 OK

Errors

  • Name
    401 Unauthorized
    Description
    • authentication_failed - authentication credentials were not provided or are invalid
  • Name
    403 Forbidden
    Description
    • permission_denied - the caller is not a member of the organization, or authenticated with an API key
    • forbidden - the caller is not the owner or an admin

Request

GET
/organizations/:org/members/
curl https://api.foxnose.net/organizations/dl55w3ds/members/ \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiI..."

Response

{
    "results": [
        {
            "user": {"key": "m4tq7wzc", "email": "owner@example.com", "full_name": "Sam Park"},
            "role": "owner",
            "is_owner": true,
            "joined_at": "2026-03-02T10:00:00Z",
            "projects": []
        },
        {
            "user": {"key": "9k2mxq4t", "email": "ada@example.com", "full_name": "Ada Lovelace"},
            "role": "member",
            "is_owner": false,
            "joined_at": "2026-11-17T09:12:03Z",
            "projects": [
                {
                    "key": "d7hazs1x",
                    "name": "Website",
                    "project_admin": false,
                    "environment_roles": [
                        {"environment": "7c9h4pwu", "role": "env_role_editors", "role_name": "Editors"}
                    ]
                }
            ]
        }
    ]
}

PATCHapi.foxnose.net/organizations/:org/members/:user_key/

Change Member Role

Changes a member's organization role. Owner and admins only. Nobody can grant a role stronger than their own, and the owner's role cannot be changed. Demoting someone revokes their pending invitations that the new role does not allow. :user_key may be me.

Success Response: 200 OK. The body is the updated member object.

Request Body

  • Name
    role
    Type
    string
    Required
    required
    Description

    admin or member.

Errors

  • Name
    403 Forbidden
    Description
    • permission_denied - the caller is not a member of the organization, or authenticated with an API key
    • forbidden - the caller is not the owner or an admin, or the role is stronger than the caller's own
  • Name
    404 Not Found
    Description
    • member_not_found - the member does not exist
  • Name
    409 Conflict
    Description
    • owner_protected - the member is the owner
  • Name
    422 Unprocessable Content
    Description
    • validation_error - role is missing or not a string. A string other than admin or member gives forbidden

Request

PATCH
/organizations/:org/members/:user_key/
curl -X PATCH https://api.foxnose.net/organizations/dl55w3ds/members/9k2mxq4t/ \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiI..." \
-H "Content-Type: application/json" \
-d '{"role": "admin"}'

DELETEapi.foxnose.net/organizations/:org/members/:user_key/

Remove Member

Removes a member. Access ends at once: the membership, every project admin role and every environment role. The person's pending invitations are revoked. Owner and admins can remove members and admins, never the owner. Use me as :user_key to leave the organization, which any member except the owner can do.

Success Response: 204 No Content

Errors

  • Name
    403 Forbidden
    Description
    • permission_denied - the caller is not a member of the organization, or authenticated with an API key
    • forbidden - the caller is not the owner or an admin, or the member's role is stronger than the caller's
  • Name
    404 Not Found
    Description
    • member_not_found - the member does not exist
  • Name
    409 Conflict
    Description
    • owner_protected - the member is the owner, or the owner is leaving

Request

DELETE
/organizations/:org/members/:user_key/
curl -X DELETE https://api.foxnose.net/organizations/dl55w3ds/members/9k2mxq4t/ \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiI..."

GETapi.foxnose.net/organizations/:org/invitations/

List Invitations

Lists every pending invitation, including one reported as expired because it is past expires_at but was never revoked, together with every invitation created in the last 30 days whatever its status, newest first, at most 200, as {"results": [...]} of invitation objects. Owner and admins see all of them; a project admin sees the invitations to the projects they administer.

Success Response: 200 OK

Errors

  • Name
    403 Forbidden
    Description
    • permission_denied - the caller is not a member of the organization, or authenticated with an API key
    • forbidden - the caller is not the owner, an admin or a project admin

Request

GET
/organizations/:org/invitations/
curl https://api.foxnose.net/organizations/dl55w3ds/invitations/ \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiI..."

POSTapi.foxnose.net/organizations/:org/invitations/

Create Invitation

Invites an email address and sends the invitation email. Owner and admins can invite to the organization, with a role up to their own, and to any project. A project admin must name their own project; the organization role is always member, and the project role can be admin or member.

Success Response: 201 Created

Request Body

  • Name
    email
    Type
    string
    Required
    required
    Description

    Email to invite. Maximum length: 254.

  • Name
    org_role
    Type
    string
    Required
    required
    Description

    admin or member.

  • Name
    project
    Type
    string
    Description

    Project key. Required for project admins.

  • Name
    project_role
    Type
    string | null
    Description

    admin or member. Needs project. Defaults to member when project is set, otherwise null.

  • Name
    environment_roles
    Type
    array | null
    Default
    default:[]
    Description

    Objects with environment and role keys, validated against the project. null or omitted means []; any other type is 422 validation_error. Needs project. Required when project_role is member.

Errors

  • Name
    402 Payment Required
    Description
    • plan_limit_reached - members plus pending invitations reached the plan's seat limit; detail has entity, current, limit and upgrade_url
  • Name
    403 Forbidden
    Description
    • permission_denied - the caller is not a member of the organization, or authenticated with an API key
    • forbidden - the caller's role does not allow this invitation
  • Name
    404 Not Found
    Description
    • project_not_found - the project does not exist (owner and admins; a project admin gets forbidden)
  • Name
    409 Conflict
    Description
    • invitation_already_pending - the email already has a pending invitation
    • pending_invitations_limit - 50 invitations are pending; detail.limit is 50
    • invitation_declined_too_often - the address declined 3 invitations from this organization within the last 90 days; detail.retry_after is the ISO 8601 time it can be invited again
  • Name
    422 Unprocessable Content
    Description
    • invalid_invitation - the email or a role is invalid
    • invalid_environment_role - an environment or role does not belong to the project
    • validation_error - a field has the wrong type

Request

POST
/organizations/:org/invitations/
curl -X POST https://api.foxnose.net/organizations/dl55w3ds/invitations/ \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiI..." \
-H "Content-Type: application/json" \
-d '{
    "email": "ana@example.com",
    "org_role": "member",
    "project": "d7hazs1x",
    "project_role": "member",
    "environment_roles": [
        {"environment": "7c9h4pwu", "role": "env_role_editors"}
    ]
}'

Response

{
    "invitation": {
        "key": "k3v8n2qa",
        "email": "ana@example.com",
        "org_role": "member",
        "project": {"key": "d7hazs1x", "name": "Website"},
        "project_role": "member",
        "environment_roles": [
            {"environment": "7c9h4pwu", "role": "env_role_editors"}
        ],
        "status": "pending",
        "invited_by": {"key": "m4tq7wzc", "email": "owner@example.com", "full_name": "Sam Park"},
        "created_at": "2026-11-17T09:00:00Z",
        "expires_at": "2026-11-24T09:00:00Z",
        "last_sent_at": "2026-11-17T09:00:01Z",
        "send_count": 1,
        "accepted_by": null,
        "accepted_at": null
    },
    "email_sent": true
}

POSTapi.foxnose.net/organizations/:org/invitations/:invitation/resend/

Resend Invitation

Sends the invitation again with a new link and extends the expiry to 7 days. The previous link stops working. Allowed once a minute and five times per invitation. The inviter or a stronger role: an owner, an admin of the organization, or the admin of the invitation's project, ranked in that order, never a peer.

Success Response: 200 OK, in the shape of create: {"invitation": {...}, "email_sent": true}.

Errors

  • Name
    402 Payment Required
    Description
    • plan_limit_reached - the seat limit is reached
  • Name
    403 Forbidden
    Description
    • permission_denied - the caller is not a member of the organization, or authenticated with an API key
    • forbidden - the caller is not the inviter or a stronger role
  • Name
    404 Not Found
    Description
    • invitation_not_found - the invitation does not exist
  • Name
    409 Conflict
    Description
    • invitation_no_longer_valid - the inviter's role does not allow these roles; the invitation is revoked
    • invitation_already_pending - another invitation to the email is pending
    • pending_invitations_limit - 50 invitations are pending
    • invitation_declined_too_often - reviving an expired invitation: the address declined 3 invitations from this organization within the last 90 days; detail.retry_after is an ISO 8601 time
  • Name
    410 Gone
    Description
    • invitation_gone - the invitation was accepted, revoked or declined; detail.state names which
  • Name
    429 Too Many Requests
    Description
    • resend_too_soon - less than a minute since the last send; detail.try_after_seconds gives the wait
    • resend_limit_reached - the invitation was resent 5 times

Request

POST
/organizations/:org/invitations/:invitation/resend/
curl -X POST https://api.foxnose.net/organizations/dl55w3ds/invitations/k3v8n2qa/resend/ \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiI..."

DELETEapi.foxnose.net/organizations/:org/invitations/:invitation/

Revoke Invitation

Revokes a pending invitation. Its link stops working. The inviter or a stronger role, as for resend. Revoking a revoked invitation changes nothing, and a pending invitation past its expires_at is revoked like any other.

Success Response: 204 No Content

Errors

  • Name
    403 Forbidden
    Description
    • permission_denied - the caller is not a member of the organization, or authenticated with an API key
    • forbidden - the caller is not the inviter or a stronger role
  • Name
    404 Not Found
    Description
    • invitation_not_found - the invitation does not exist; a project admin gets this for another project's invitation
  • Name
    410 Gone
    Description
    • invitation_gone - the invitation was accepted, declined or is recorded as expired; detail.state names which

Request

DELETE
/organizations/:org/invitations/:invitation/
curl -X DELETE https://api.foxnose.net/organizations/dl55w3ds/invitations/k3v8n2qa/ \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiI..."

GETapi.foxnose.net/organizations/:org/projects/:project/members/

List Project Members

Lists the members with explicit access to the project, a project admin role or environment roles, as {"results": [...]}. Each entry has user, org_role, project_admin and environment_roles (with environment, role and role_name). Owner, admins and the project's admin.

Success Response: 200 OK

Errors

  • Name
    403 Forbidden
    Description
    • permission_denied - the caller is not a member of the organization, or authenticated with an API key
    • forbidden - the caller is not the owner, an admin or this project's admin
  • Name
    404 Not Found
    Description
    • project_not_found - the project does not exist or the caller has no access to it

Request

GET
/organizations/:org/projects/:project/members/
curl https://api.foxnose.net/organizations/dl55w3ds/projects/d7hazs1x/members/ \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiI..."

Response

{
    "results": [
        {
            "user": {"key": "9k2mxq4t", "email": "ada@example.com", "full_name": "Ada Lovelace"},
            "org_role": "member",
            "project_admin": false,
            "environment_roles": [
                {"environment": "7c9h4pwu", "role": "env_role_editors", "role_name": "Editors"}
            ]
        }
    ]
}

PUTapi.foxnose.net/organizations/:org/projects/:project/members/:user_key/

Set Project Access

Sets an existing member's project access to exactly the request: the project admin flag and the environment roles. Owner, admins and the project's admin; a project admin changes plain members only.

Success Response: 200 OK. The body is the project member entry, as in the list.

Request Body

  • Name
    project_admin
    Type
    boolean
    Default
    default:false
    Description

    Grants the project admin role.

  • Name
    environment_roles
    Type
    array | null
    Default
    default:[]
    Description

    Objects with environment and role keys. null or omitted means []. Any other type is 422 validation_error.

Errors

  • Name
    403 Forbidden
    Description
    • permission_denied - the caller is not a member of the organization, or authenticated with an API key
    • forbidden - the caller is not the owner, an admin or this project's admin, or the caller is a project admin and the target is an organization admin
  • Name
    404 Not Found
    Description
    • project_not_found - the project does not exist or the caller has no access to it
    • member_not_found - the member does not exist
  • Name
    409 Conflict
    Description
    • owner_protected - the member is the owner
  • Name
    422 Unprocessable Content
    Description
    • invalid_environment_role - an environment or role does not belong to the project
    • validation_error - a field has the wrong type

Request

PUT
/organizations/:org/projects/:project/members/:user_key/
curl -X PUT https://api.foxnose.net/organizations/dl55w3ds/projects/d7hazs1x/members/9k2mxq4t/ \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiI..." \
-H "Content-Type: application/json" \
-d '{
    "project_admin": false,
    "environment_roles": [
        {"environment": "7c9h4pwu", "role": "env_role_editors"}
    ]
}'

DELETEapi.foxnose.net/organizations/:org/projects/:project/members/:user_key/

Remove Project Access

Removes the member's access to the project: the project admin role and every environment role. Owner, admins and the project's admin.

Success Response: 204 No Content

Errors

  • Name
    403 Forbidden
    Description
    • permission_denied - the caller is not a member of the organization, or authenticated with an API key
    • forbidden - the caller is not the owner, an admin or this project's admin, or the caller is a project admin and the target is an organization admin
  • Name
    404 Not Found
    Description
    • project_not_found - the project does not exist or the caller has no access to it
    • member_not_found - the member does not exist
  • Name
    409 Conflict
    Description
    • owner_protected - the member is the owner

Request

DELETE
/organizations/:org/projects/:project/members/:user_key/
curl -X DELETE https://api.foxnose.net/organizations/dl55w3ds/projects/d7hazs1x/members/9k2mxq4t/ \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiI..."

POSTapi.foxnose.net/invitations/preview/

Preview Invitation

Shows what an invitation grants before the invitee signs in. Requires no authentication. The token travels in the request body only. Limited to 30 requests per minute per IP address.

Success Response: 200 OK. The body holds organization (name), inviter (name), email masked but for the first and last character of its local part and its domain (a***v@example.com); a local part of one or two characters shows only its first character, org_role, project (key and name, or null), project_role, environment_roles, state and expires_at.

Request Body

  • Name
    token
    Type
    string
    Required
    required
    Description

    Token from the invitation link. 1 to 512 characters.

Errors

  • Name
    404 Not Found
    Description
    • invitation_not_found - the token is unknown
  • Name
    410 Gone
    Description
    • invitation_gone - the invitation was accepted, revoked, declined or has expired; detail.state names which
  • Name
    422 Unprocessable Content
    Description
    • validation_error - the token is missing, empty or longer than 512 characters
  • Name
    429 Too Many Requests
    Description
    • throttled - too many requests

Request

POST
/invitations/preview/
curl -X POST https://api.foxnose.net/invitations/preview/ \
-H "Content-Type: application/json" \
-d '{"token": "<token from the invitation link>"}'

POSTapi.foxnose.net/account/invitations/accept/

Accept Invitation

Accepts an invitation as the signed-in user. The email of the account, or an email verified through a linked sign-in, must equal the invited email, compared case-insensitively. A person who is already a member keeps the stronger of the two organization roles. A project invitation adds to the access the person already has in that project and leaves their other projects unchanged. Repeating the request with the same token by the same user returns the same result; any other user receives 410. Limited to 20 requests per minute per user.

Success Response: 200 OK. The body holds invitation (the key), state (accepted), organization (key and name) and project (key, or null).

Request Body

  • Name
    token
    Type
    string
    Required
    required
    Description

    Token from the invitation link. 1 to 512 characters.

Errors

  • Name
    402 Payment Required
    Description
    • plan_limit_reached - the seat limit is reached
  • Name
    401 Unauthorized
    Description
    • authentication_failed - no signed-in user
  • Name
    403 Forbidden
    Description
    • invitation_email_mismatch - the account's email is not the invited email
  • Name
    404 Not Found
    Description
    • invitation_not_found - the token is unknown, or a resend replaced it
  • Name
    409 Conflict
    Description
    • invitation_no_longer_valid - the inviter's role does not allow these roles, or the project or role does not exist; the invitation is revoked
  • Name
    410 Gone
    Description
    • invitation_gone - the invitation was revoked, declined or has expired, or another user accepted it
  • Name
    422 Unprocessable Content
    Description
    • validation_error - the token is missing or invalid
  • Name
    429 Too Many Requests
    Description
    • throttled - too many requests

Request

POST
/account/invitations/accept/
curl -X POST https://api.foxnose.net/account/invitations/accept/ \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiI..." \
-H "Content-Type: application/json" \
-d '{"token": "<token from the invitation link>"}'

GETapi.foxnose.net/account/invitations/

List My Invitations

Lists the pending, unexpired invitations addressed to the verified email addresses of the signed-in account, newest first, at most 100. Requires a user session (JWT); API keys are refused. The response is not cached. Limited to 20 requests per minute per user.

Success Response: 200 OK, {"results": [...]}. Each item holds key, email, organization (key and name), inviter (name), org_role, project (key and name, or null), project_role, environment_roles (objects with environment and role), expires_at and created_at.

Errors

  • Name
    401 Unauthorized
    Description
    • authentication_failed - no signed-in user
  • Name
    429 Too Many Requests
    Description
    • throttled - too many requests

Request

GET
/account/invitations/
curl https://api.foxnose.net/account/invitations/ \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiI..."

POSTapi.foxnose.net/account/invitations/:invitation/accept/

Accept My Invitation

Accepts an invitation by its key for the signed-in account. The invitation must be addressed to one of the account's verified email addresses. Requires a user session (JWT). The response is not cached. Repeating the request with the same account returns the same result. Limited to 20 requests per minute per user.

Success Response: 200 OK, the same body as Accept Invitation.

Errors

  • Name
    401 Unauthorized
    Description
    • authentication_failed - no signed-in user
  • Name
    402 Payment Required
    Description
    • plan_limit_reached - the seat limit is reached
  • Name
    404 Not Found
    Description
    • invitation_not_found - the key is unknown, or the invitation is addressed to an email the account does not control
  • Name
    409 Conflict
    Description
    • invitation_no_longer_valid - the inviter's role does not allow these roles, or the project or role does not exist; the invitation is revoked
  • Name
    410 Gone
    Description
    • invitation_gone - the invitation was revoked, declined or has expired, or another account accepted it; detail.state is accepted, revoked, expired or declined
  • Name
    429 Too Many Requests
    Description
    • throttled - too many requests

Request

POST
/account/invitations/:invitation/accept/
curl -X POST https://api.foxnose.net/account/invitations/k3v8n2qa/accept/ \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiI..."

POSTapi.foxnose.net/account/invitations/:invitation/decline/

Decline Invitation

Declines an invitation by its key for the signed-in account. A declined invitation cannot be accepted or resent. The organization can send a new invitation unless the address has declined 3 invitations from it within 90 days; until retry_after, new invitations are refused. Requires a user session (JWT). The response is not cached. Repeating the request is safe. Limited to 20 requests per minute per user.

Success Response: 204 No Content.

Errors

  • Name
    401 Unauthorized
    Description
    • authentication_failed - no signed-in user
  • Name
    404 Not Found
    Description
    • invitation_not_found - the key is unknown, or the invitation is addressed to an email the account does not control
  • Name
    410 Gone
    Description
    • invitation_gone - the invitation was accepted, revoked or has expired; detail.state names which
  • Name
    429 Too Many Requests
    Description
    • throttled - too many requests

Request

POST
/account/invitations/:invitation/decline/
curl -X POST https://api.foxnose.net/account/invitations/k3v8n2qa/decline/ \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiI..."

POSTapi.foxnose.net/account/sign-up/invitation/

Sign Up from Invitation

Creates a verified account for the invited email and accepts the invitation in one step. The token proves control of the email. No authentication; a signed-in caller gets 422 user_is_logged_in. Limited to 10 requests per minute per IP address.

Success Response: 201 Created. The body holds key, email, first_name, last_name and full_name of the new user, auth (access and refresh tokens) and invitation, the result of accepting.

Request Body

  • Name
    token
    Type
    string
    Required
    required
    Description

    Token from the invitation link. 1 to 512 characters.

  • Name
    password
    Type
    string
    Required
    required
    Description

    Account password. 1 to 255 characters.

  • Name
    first_name
    Type
    string
    Required
    required
    Description

    First name. 1 to 100 characters.

  • Name
    last_name
    Type
    string
    Required
    required
    Description

    Last name. 1 to 100 characters.

Errors

  • Name
    402 Payment Required
    Description
    • plan_limit_reached - the seat limit is reached
  • Name
    404 Not Found
    Description
    • invitation_not_found - the token is unknown
  • Name
    409 Conflict
    Description
    • account_exists - an account with this email exists; sign in and accept instead
    • invitation_no_longer_valid - the inviter's role does not allow these roles, or the project or role does not exist; the invitation is revoked
  • Name
    410 Gone
    Description
    • invitation_gone - the invitation was accepted, revoked, declined or has expired
  • Name
    422 Unprocessable Content
    Description
    • validation_error - a field is missing or invalid
    • weak_password - the password does not meet the rules
    • user_is_logged_in - the caller is signed in
  • Name
    429 Too Many Requests
    Description
    • throttled - too many requests

Request

POST
/account/sign-up/invitation/
curl -X POST https://api.foxnose.net/account/sign-up/invitation/ \
-H "Content-Type: application/json" \
-d '{
    "token": "<token from the invitation link>",
    "password": "********",
    "first_name": "Ana",
    "last_name": "Diaz"
}'

Was this page helpful?