POST /v1/user-invites

Create a Redpanda Cloud user invite.

application/json

Body Required

  • user_invite object
    Hide user_invite attributes Show user_invite attributes object
    • email string
    • role_bindings array[object]
      Hide role_bindings attributes Show role_bindings attributes object
      • role_name string
      • scope object
        Hide scope attributes Show scope attributes object
        • resource_id string
        • resource_type string

          Values are SCOPE_RESOURCE_TYPE_RESOURCE_GROUP, SCOPE_RESOURCE_TYPE_NETWORK, SCOPE_RESOURCE_TYPE_CLUSTER, SCOPE_RESOURCE_TYPE_SERVERLESS_CLUSTER, SCOPE_RESOURCE_TYPE_NETWORK_PEERING, or SCOPE_RESOURCE_TYPE_ORGANIZATION.

Responses

  • 201 application/json

    UserInvite Created

    Hide response attribute Show response attribute object
    • user_invite object
      Hide user_invite attributes Show user_invite attributes object
      • created_at string(date-time)
      • email string
      • expires_at string(date-time)
      • id string
      • invite_url string
      • role_bindings array[object]
        Hide role_bindings attributes Show role_bindings attributes object
        • role_name string
        • scope object
          Hide scope attributes Show scope attributes object
          • resource_id string
          • resource_type string

            Values are SCOPE_RESOURCE_TYPE_RESOURCE_GROUP, SCOPE_RESOURCE_TYPE_NETWORK, SCOPE_RESOURCE_TYPE_CLUSTER, SCOPE_RESOURCE_TYPE_SERVERLESS_CLUSTER, SCOPE_RESOURCE_TYPE_NETWORK_PEERING, or SCOPE_RESOURCE_TYPE_ORGANIZATION.

  • 500 application/json

    Internal Server Error. Reach out to support.

    Hide response attributes Show response attributes object
    • code string(int32)

      RPC status code, as described here.

      Values are OK, CANCELLED, UNKNOWN, INVALID_ARGUMENT, DEADLINE_EXCEEDED, NOT_FOUND, ALREADY_EXISTS, PERMISSION_DENIED, UNAUTHENTICATED, RESOURCE_EXHAUSTED, FAILED_PRECONDITION, ABORTED, OUT_OF_RANGE, UNIMPLEMENTED, INTERNAL, UNAVAILABLE, or DATA_LOSS.

    • details array[object]

      A list of messages that carries the error details.

      Details of the error.

      Details of the error.

      One of:
    • message string

      Detailed error message. No compatibility guarantees are given for the text contained in this message.

  • default application/json

    An unexpected error response.

    Hide response attributes Show response attributes object
    • code string(int32)

      RPC status code, as described here.

      Values are OK, CANCELLED, UNKNOWN, INVALID_ARGUMENT, DEADLINE_EXCEEDED, NOT_FOUND, ALREADY_EXISTS, PERMISSION_DENIED, UNAUTHENTICATED, RESOURCE_EXHAUSTED, FAILED_PRECONDITION, ABORTED, OUT_OF_RANGE, UNIMPLEMENTED, INTERNAL, UNAVAILABLE, or DATA_LOSS.

    • details array[object]

      A list of messages that carries the error details.

      Details of the error.

      Details of the error.

      One of:
    • message string

      Detailed error message. No compatibility guarantees are given for the text contained in this message.

POST /v1/user-invites
curl \ --request POST 'https://api.redpanda.com/v1/user-invites' \ --header "Authorization: Bearer $ACCESS_TOKEN" \ --header "Content-Type: application/json" \ --data '{"user_invite":{"email":"string","role_bindings":[{"role_name":"string","scope":{"resource_id":"string","resource_type":"SCOPE_RESOURCE_TYPE_RESOURCE_GROUP"}}]}}'
Request examples
{ "user_invite": { "email": "string", "role_bindings": [ { "role_name": "string", "scope": { "resource_id": "string", "resource_type": "SCOPE_RESOURCE_TYPE_RESOURCE_GROUP" } } ] } }
Response examples (201)
{ "user_invite": { "created_at": "2025-05-04T09:42:00Z", "email": "string", "expires_at": "2025-05-04T09:42:00Z", "id": "string", "invite_url": "string", "role_bindings": [ { "role_name": "string", "scope": { "resource_id": "string", "resource_type": "SCOPE_RESOURCE_TYPE_RESOURCE_GROUP" } } ] } }
Response examples (500)
{ "code": "OK", "details": [ { "@type": "type.googleapis.com/google.rpc.BadRequest", "field_violations": [ { "description": "string", "field": "string", "localized_message": { "locale": "string", "message": "string" }, "reason": "string" } ] } ], "message": "string" }
Response examples (default)
{ "code": "OK", "details": [ { "@type": "type.googleapis.com/google.rpc.BadRequest", "field_violations": [ { "description": "string", "field": "string", "localized_message": { "locale": "string", "message": "string" }, "reason": "string" } ] } ], "message": "string" }